Skip to content

Commit 3fe1ede

Browse files
committed
Fix implicit fallthrough warning in scanner.c
1 parent c318bea commit 3fe1ede

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/parser/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static Stmt *intentDecl(Parser *p) {
658658
}
659659
consume(p, TOKEN_RIGHT_PAREN, "Expect ')'.");
660660

661-
TypeInfo returnType = {TYPE_UNKNOWN, NULL, NULL, NULL, 0};
661+
TypeInfo returnType = {TYPE_UNKNOWN, NULL, NULL, NULL, 0, false};
662662
if (match(p, 1, TOKEN_ARROW)) {
663663
Token typeTok = consume(p, TOKEN_IDENTIFIER, "Expect return type.");
664664
returnType.name = tokenToString(typeTok);

0 commit comments

Comments
 (0)