summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-26 21:50:12 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-27 23:04:38 +0200
commit74c751399fc7922d51b2ac8e1987c78b5a65cfdc (patch)
tree142737e3f80f074d0d358bbdbba37a122d613fe7 /test
parent4145e966859dccc5bf7fac1f1c74b3efd8b6b7e9 (diff)
Type annotations in arguments of function definition
Diffstat (limited to 'test')
-rw-r--r--test/asset/parser/type-annotation.et6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/asset/parser/type-annotation.et b/test/asset/parser/type-annotation.et
index 5fbf323..811b54b 100644
--- a/test/asset/parser/type-annotation.et
+++ b/test/asset/parser/type-annotation.et
@@ -1,6 +1,8 @@
-def fun (a) and b:
- let c = [ a : String, "x" ]
+def fun (a : String) and (b : String):
+ let c = [ a, "x" ]
let d = [ b : String, "y" : String ]
+ guard (c /= d)
test Test:
let x = "" : String
+ fun "a" and "b"