1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: check that functions return in all if/else branches

This commit is contained in:
Julian Schurhammer
2019-08-08 19:49:56 +12:00
committed by Alexander Medvednikov
parent 28147c0930
commit 61983a6799
9 changed files with 14 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ fn (p mut Parser) peek() Token {
return tok
}
}
return .eof // TODO can never get here - v doesn't know that
}
fn (p mut Parser) fmt_inc() {