From 74c751399fc7922d51b2ac8e1987c78b5a65cfdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 26 Aug 2026 21:50:12 +0200 Subject: Type annotations in arguments of function definition --- test/asset/parser/type-annotation.et | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/asset/parser') 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" -- cgit v1.2.3