Commit e538e89
committed
Don't allow two type parameter sections for extension methods
Don't allow extension methods to have type parameters if collective
type parameters were already given. The reason to disallow is that
we don't support multiple consecutive type argument sections yet.
And merging two type parameter sections into one would break a future
extension where we do allow multiple consecutive type argument sections.1 parent 7a2cff6 commit e538e89
File tree
2 files changed
+22
-4
lines changed- compiler/src/dotty/tools/dotc/parsing
- tests/neg
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3372 | 3372 | | |
3373 | 3373 | | |
3374 | 3374 | | |
3375 | | - | |
| 3375 | + | |
3376 | 3376 | | |
3377 | 3377 | | |
3378 | 3378 | | |
3379 | | - | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
3380 | 3383 | | |
3381 | 3384 | | |
3382 | 3385 | | |
| |||
3406 | 3409 | | |
3407 | 3410 | | |
3408 | 3411 | | |
3409 | | - | |
| 3412 | + | |
3410 | 3413 | | |
3411 | 3414 | | |
3412 | 3415 | | |
| |||
3467 | 3470 | | |
3468 | 3471 | | |
3469 | 3472 | | |
3470 | | - | |
| 3473 | + | |
3471 | 3474 | | |
3472 | 3475 | | |
3473 | 3476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments