typecheck: diagnose missing CHECK TYPE expression
This commit is contained in:
@@ -299,6 +299,9 @@ EXPECTED = {
|
||||
"tests/typecheck_missing_expression_bad.claro": [
|
||||
"tests/typecheck_missing_expression_bad.claro:1: CHECK TYPE needs an expression, IS, and a type. Try: CHECK TYPE score IS NUMBER.",
|
||||
],
|
||||
"tests/typecheck_missing_expression_with_is_bad.claro": [
|
||||
"tests/typecheck_missing_expression_with_is_bad.claro:1: CHECK TYPE needs an expression before IS. Try: CHECK TYPE score IS NUMBER.",
|
||||
],
|
||||
"tests/typecheck_extra_check_type_tokens_bad.claro": [
|
||||
"tests/typecheck_extra_check_type_tokens_bad.claro:2: CHECK TYPE score has extra text after type NUMBER. Keep only the expression, IS, and one type.",
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user