fix(test): update wrong-args error message expectation

This commit is contained in:
2026-06-10 00:28:18 +03:00
parent 40bcbeb710
commit 632fa1535c
+1 -1
View File
@@ -43,7 +43,7 @@ suite "Sema":
test "wrong number of arguments":
let res = checkSource("func Add(a: int32, b: int32) -> int32 { return a + b; } func Main() -> int { return Add(1); }")
check res.hasErrors
check "expected 2 arguments" in res.diagnostics[0].message
check "missing argument for parameter 'b'" in res.diagnostics[0].message
test "wrong argument type":
let res = checkSource("func Add(a: int32, b: int32) -> int32 { return a + b; } func Main() -> int { return Add(c8\"a\", 2); }")