summaryrefslogtreecommitdiff
path: root/test.squig
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-02-11 22:54:35 +0100
committertomsmeding <tom.smeding@gmail.com>2017-02-11 22:55:53 +0100
commit164a8d297429d58d216b9fa44e0cb42db5d23e2c (patch)
treeb6ca185472108fe4de3578b9efd8d46dd2476582 /test.squig
parent15d1419c0d97d63a70271c451fdeef1e69ad7d96 (diff)
Handle functions better in 'compilation'
Diffstat (limited to 'test.squig')
-rw-r--r--test.squig17
1 files changed, 16 insertions, 1 deletions
diff --git a/test.squig b/test.squig
index 1e83fb2..c45cdb2 100644
--- a/test.squig
+++ b/test.squig
@@ -1 +1,16 @@
-a := 1
+v := "first v value"
+
+f := ??{
+ puts("function")
+ x := v
+}
+
+f {
+ puts(x)
+}
+
+v = "second v value"
+
+f {
+ puts(x)
+}