test: cover compatibility method field diagnostics
This commit is contained in:
@@ -278,6 +278,9 @@ EXPECTED = {
|
||||
"tests/typecheck_method_text_field_assignment_bad.claro": [
|
||||
"tests/typecheck_method_text_field_assignment_bad.claro:4: Type mismatch for field name in Player.rename: expected TEXT, but this value looks like NUMBER.",
|
||||
],
|
||||
"tests/typecheck_method_compat_text_field_assignment_bad.claro": [
|
||||
"tests/typecheck_method_compat_text_field_assignment_bad.claro:4: Type mismatch for field name in Player.rename: expected TEXT, but this value looks like NUMBER.",
|
||||
],
|
||||
}
|
||||
|
||||
EXPECTED_OK = [
|
||||
@@ -309,6 +312,7 @@ EXPECTED_OK = [
|
||||
"tests/typecheck_method_unknown_return_expression_good.claro",
|
||||
"tests/typecheck_method_field_assignment_good.claro",
|
||||
"tests/typecheck_method_text_field_assignment_good.claro",
|
||||
"tests/typecheck_method_compat_text_field_assignment_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