about summary refs log tree commit diff
path: root/users/tazjin/rlox/examples/var.lox
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/rlox/examples/var.lox')
-rw-r--r--users/tazjin/rlox/examples/var.lox8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/tazjin/rlox/examples/var.lox b/users/tazjin/rlox/examples/var.lox
new file mode 100644
index 000000000000..7af90b3f0bee
--- /dev/null
+++ b/users/tazjin/rlox/examples/var.lox
@@ -0,0 +1,8 @@
+var a = 10;
+var b = 5;
+
+{
+  var b = 10;
+  var c = 2;
+  a * b * c;
+}