summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/asset/parser/type-annotation.et6
-rw-r--r--test/script/parser.et1
2 files changed, 7 insertions, 0 deletions
diff --git a/test/asset/parser/type-annotation.et b/test/asset/parser/type-annotation.et
new file mode 100644
index 0000000..5fbf323
--- /dev/null
+++ b/test/asset/parser/type-annotation.et
@@ -0,0 +1,6 @@
+def fun (a) and b:
+ let c = [ a : String, "x" ]
+ let d = [ b : String, "y" : String ]
+
+test Test:
+ let x = "" : String
diff --git a/test/script/parser.et b/test/script/parser.et
index a4e4e2f..d387877 100644
--- a/test/script/parser.et
+++ b/test/script/parser.et
@@ -23,3 +23,4 @@ test Parser:
expect_load_success using p of "function"
expect_load_failure using p of "function-fail" giving "parse-error"
expect_load_success using p of "tags"
+ expect_load_success using p of "type-annotation"