typecheck: reject extra class name tokens
This commit is contained in:
@@ -287,6 +287,9 @@ EXPECTED = {
|
||||
"tests/typecheck_missing_field_type_bad.claro": [
|
||||
"tests/typecheck_missing_field_type_bad.claro:2: Class Player field score is missing a type. Add a type such as NUMBER, TEXT, YESNO, LIST, or MAP after the field name.",
|
||||
],
|
||||
"tests/typecheck_extra_class_tokens_bad.claro": [
|
||||
"tests/typecheck_extra_class_tokens_bad.claro:1: Class Player has extra text after its name. Keep only the class name after CLASS.",
|
||||
],
|
||||
"tests/typecheck_extra_field_tokens_bad.claro": [
|
||||
"tests/typecheck_extra_field_tokens_bad.claro:2: Class Player field score has extra text after type NUMBER. Keep only the field name and one type.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user