Commit b09cb60
Kristian Larsson
Allow underscore lambda parameters
The parser treats _ as a keyword for ordinary identifiers, but lambda
parameters can use it as a throwaway name. After the Text cleanup, that
path rejected call arguments containing lambda c, _, err.
Accept _ through parameter parsing only, where it is valid. Keep normal
identifier diagnostics unchanged and add a parser regression covering
the lambda call-argument case.1 parent c40f685 commit b09cb60
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
1119 | | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1120 | 1121 | | |
1121 | 1122 | | |
1122 | 1123 | | |
| |||
1130 | 1131 | | |
1131 | 1132 | | |
1132 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1133 | 1140 | | |
1134 | 1141 | | |
1135 | 1142 | | |
| |||
2448 | 2455 | | |
2449 | 2456 | | |
2450 | 2457 | | |
2451 | | - | |
| 2458 | + | |
2452 | 2459 | | |
2453 | 2460 | | |
2454 | 2461 | | |
2455 | 2462 | | |
2456 | 2463 | | |
2457 | | - | |
| 2464 | + | |
2458 | 2465 | | |
2459 | 2466 | | |
2460 | 2467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| |||
0 commit comments