typecheck: diagnose missing TYPE OF result names
This commit is contained in:
@@ -10,6 +10,9 @@ EXPECTED = {
|
||||
"tests/typecheck_missing_type_of_expression_bad.claro": [
|
||||
"tests/typecheck_missing_type_of_expression_bad.claro:1: TYPE OF needs an expression before AS. Try: TYPE OF score AS kind.",
|
||||
],
|
||||
"tests/typecheck_missing_type_of_result_name_bad.claro": [
|
||||
"tests/typecheck_missing_type_of_result_name_bad.claro:1: TYPE OF needs a result name after AS. Try: TYPE OF score AS kind.",
|
||||
],
|
||||
"tests/typecheck_function_duplicate_param_bad.claro": [
|
||||
"tests/typecheck_function_duplicate_param_bad.claro:1: Function greet declares parameter name more than once. Give each parameter a different name.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user