### Describe the bug A bad error message.(according to the admin on tg) ### Expected Behavior a better error message. ### Current Behavior ``` test.v:3:9: error: unexpected token `;`, expecting `{` 1 | fn main() { 2 | i := 0 3 | for i++; i < 10; i++ { | ^ 4 | println(i) 5 | } ``` ### Reproduction Steps ``` fn main() { i := 0 for i++; i < 10; i++ { println(i) } } ``` ### Possible Solution _No response_ ### Additional Information/Context _No response_ ### V version V 0.3.4 7f178d4 ### Environment details (OS name and version, etc.) OS: windows, Microsoft Windows 10 Pro v19045 64-bit
Activity
parser, cgen: fix `for i++; i<10; i++ {` (fix #18445) (#19035)