test: cover unknown method return expressions
This commit is contained in:
@@ -55,6 +55,9 @@ EXPECTED = {
|
||||
"tests/typecheck_method_return_expression_bad.claro": [
|
||||
"tests/typecheck_method_return_expression_bad.claro:4: Type mismatch for return from Player.label: expected TEXT, but this value looks like NUMBER.",
|
||||
],
|
||||
"tests/typecheck_method_unknown_return_expression_bad.claro": [
|
||||
"tests/typecheck_method_unknown_return_expression_bad.claro:4: Method Player.square's return value could not be understood yet. Use a NUMBER expression after RETURN.",
|
||||
],
|
||||
"tests/typecheck_method_field_return_bad.claro": [
|
||||
"tests/typecheck_method_field_return_bad.claro:5: Type mismatch for return from Player.label: expected TEXT, but this value looks like NUMBER.",
|
||||
],
|
||||
@@ -247,6 +250,7 @@ EXPECTED_OK = [
|
||||
"tests/typecheck_method_compat_return_good.claro",
|
||||
"tests/typecheck_method_compat_lowercase_return_good.claro",
|
||||
"tests/typecheck_method_return_expression_good.claro",
|
||||
"tests/typecheck_method_unknown_return_expression_good.claro",
|
||||
"tests/typecheck_method_nested_branch_complete_good.claro",
|
||||
"tests/typecheck_function_multi_good.claro",
|
||||
"tests/typecheck_method_good.claro",
|
||||
|
||||
Reference in New Issue
Block a user