about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-02-10 00:08:55 +0100
committerBaitinq <[email protected]>2025-02-10 00:08:55 +0100
commitc26049d0c2a2d5661a1257f4047d714a273c6f28 (patch)
tree2145d95cc6119ec1762de46e20ebc6566f0862cb /examples
parentCodegen: Random fixes (diff)
downloadpry-lang-c26049d0c2a2d5661a1257f4047d714a273c6f28.tar.gz
pry-lang-c26049d0c2a2d5661a1257f4047d714a273c6f28.tar.bz2
pry-lang-c26049d0c2a2d5661a1257f4047d714a273c6f28.zip
Codegen: Fix SSA variable declaration
Diffstat (limited to 'examples')
-rw-r--r--examples/6.5.src7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/6.5.src b/examples/6.5.src
new file mode 100644
index 0000000..9aa1cac
--- /dev/null
+++ b/examples/6.5.src
@@ -0,0 +1,7 @@
+let main = () => {
+	let x = 1;
+	if x == 1 {
+		x = 2;
+	};
+	return x;
+};