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

checker: do not allow extra () in if conditions

This commit is contained in:
Alexander Medvednikov
2020-03-27 14:57:19 +01:00
parent 1a751208ca
commit 473d9fef55
11 changed files with 33 additions and 23 deletions

View File

@ -334,7 +334,7 @@ fn parser(s string) (int,PrepNumber) {
result = parser_pzero
}
}
else if (pn.exponent > 309) {
else if pn.exponent > 309 {
if pn.negative {
result = parser_minf
}