summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-05-01 20:25:20 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-05-02 20:54:00 +0200
commit0905fe68591a3dad83f87d5ac805b674c0b88c76 (patch)
tree3463598b6e4fb2f3d639ddca92c90146495d19a0 /test
parent62b65e16f5ef4e59dcfbdc10ae2b3cd419d79d7a (diff)
Arbitrary type expression as function argumentsHEADmaster
Diffstat (limited to 'test')
-rw-r--r--test/asset/parser/function.et6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/asset/parser/function.et b/test/asset/parser/function.et
index 3eca414..2a096b9 100644
--- a/test/asset/parser/function.et
+++ b/test/asset/parser/function.et
@@ -4,6 +4,12 @@ def g (x) and y = (x + (y+1))
test Test:
guard (1 == 1)
+ guard (1 /= 2)
+ let x = 2
+ guard (x == x)
+ guard (x /= 1)
+ guard (x /= x + 1)
+
guard (f 1 and 2 == 4)
guard (f 1 and 2 == g 1 and 2)
guard (f 1 and (g 2 and 3) == g 1 and 2 + 4)