typecheck: diagnose missing class field names
This commit is contained in:
@@ -40,6 +40,9 @@ EXPECTED = {
|
||||
"tests/typecheck_missing_method_name_bad.claro": [
|
||||
"tests/typecheck_missing_method_name_bad.claro:2: Method Player needs a method name. Add a name after TEACH, such as TEACH show.",
|
||||
],
|
||||
"tests/typecheck_missing_field_name_bad.claro": [
|
||||
"tests/typecheck_missing_field_name_bad.claro:2: Class Player needs a field name. Add a name and type after HAS, such as HAS score NUMBER.",
|
||||
],
|
||||
"tests/typecheck_missing_class_name_bad.claro": [
|
||||
"tests/typecheck_missing_class_name_bad.claro:1: CLASS needs a class name. Add a name after CLASS, such as CLASS Player.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user