Commit 70499ed
committed
Add diagnostics for semicolon at the end of while body
This change introduce diagnostics when there is a semicolon at
the end of the while loop body:
```cpp
i := 0;
while i* < container.size() next i++ {
std::cout << container[i] << std::endl;
};
```
generates:
```
error: while loop body shall not end with a semicolon (at ';')
```1 parent a8dd408 commit 70499ed
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4208 | 4208 | | |
4209 | 4209 | | |
4210 | 4210 | | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
4211 | 4215 | | |
4212 | 4216 | | |
4213 | 4217 | | |
| |||
0 commit comments