Commit 6a93b4c
committed
Add diagnostics for double semicolon at short lambda
This change introduce diagnostics when there is a double semicolon at
the end of the short function body for unnamed function:
```cpp
l2 := :() -> int = 24;;
```
Generates:
```
error: a short function syntax shall end with a single semicolon (at ';')
```1 parent 70499ed commit 6a93b4c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3010 | 3010 | | |
3011 | 3011 | | |
3012 | 3012 | | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
3013 | 3019 | | |
3014 | 3020 | | |
3015 | 3021 | | |
| |||
0 commit comments