test: cover compatibility method division diagnostics
This commit is contained in:
@@ -61,6 +61,9 @@ EXPECTED = {
|
||||
"tests/typecheck_method_compat_return_subtraction_bad.claro": [
|
||||
"tests/typecheck_method_compat_return_subtraction_bad.claro:4: Type mismatch for return from Player.total: subtraction needs NUMBER values, but \"oops\" looks like TEXT.",
|
||||
],
|
||||
"tests/typecheck_method_compat_return_division_bad.claro": [
|
||||
"tests/typecheck_method_compat_return_division_bad.claro:4: Type mismatch for return from Player.total: division needs NUMBER values, but \"oops\" looks like TEXT.",
|
||||
],
|
||||
"tests/typecheck_function_unknown_return_expression_bad.claro": [
|
||||
"tests/typecheck_function_unknown_return_expression_bad.claro:2: Function square's return value could not be understood yet. Use a NUMBER expression after RETURN.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user