We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94e353 commit 081a3fcCopy full SHA for 081a3fc
grammar.y
@@ -204,6 +204,10 @@ Stmnt : EOL { $$ = new Empty; prev->link($$); prev = $$; }
204
}
205
206
| ID ASSIGN ID LCURL Args RCURL EOL {
207
+ if (!table->check($3).first || table->type($3) != ExpI::RecordT) {
208
+ error(@1, "no such record: " + $3);
209
+ YYERROR;
210
+ }
211
if ($5.size() != std::get<RecordT>(table->value($3)).size()) {
212
error(@2, "wrong number of fields for record type: " + $3);
213
YYERROR;
0 commit comments