Skip to content

Commit

Permalink
Fix forward resolution checking (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtereshkov committed Sep 6, 2022
1 parent d734d6e commit 91136c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/umka.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/umka_decl.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ static void parseTypeDecl(Compiler *comp)
}
else
parseTypeDeclItem(comp);

typeAssertForwardResolved(&comp->types);
}


Expand Down Expand Up @@ -694,6 +692,8 @@ void parseDecl(Compiler *comp)

default: comp->error.handler(comp->error.context, "Declaration expected but %s found", lexSpelling(comp->lex.tok.kind)); break;
}

typeAssertForwardResolved(&comp->types);
}


Expand Down

0 comments on commit 91136c0

Please sign in to comment.