diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-26 21:50:12 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-27 23:04:38 +0200 |
| commit | 74c751399fc7922d51b2ac8e1987c78b5a65cfdc (patch) | |
| tree | 142737e3f80f074d0d358bbdbba37a122d613fe7 /test/asset/parser/type-annotation.et | |
| parent | 4145e966859dccc5bf7fac1f1c74b3efd8b6b7e9 (diff) | |
Type annotations in arguments of function definition
Diffstat (limited to 'test/asset/parser/type-annotation.et')
| -rw-r--r-- | test/asset/parser/type-annotation.et | 6 |
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" |