typecheck: diagnose unknown CALL functions
This commit is contained in:
@@ -32,6 +32,9 @@ EXPECTED = {
|
||||
"tests/typecheck_function_unknown_bad.claro": [
|
||||
"tests/typecheck_function_unknown_bad.claro:6: Function squre is not known yet. Check the function name or add TEACH squre before calling it.",
|
||||
],
|
||||
"tests/typecheck_function_call_unknown_bad.claro": [
|
||||
"tests/typecheck_function_call_unknown_bad.claro:6: Function squre is not known yet. Check the function name or add TEACH squre before calling it.",
|
||||
],
|
||||
"tests/typecheck_method_bad.claro": [
|
||||
"tests/typecheck_method_bad.claro:11: Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user