Commit 3568757
committed
Fix check not to run after typer
After typer we can get two consecutive type argument sections. If the first
section consists of named parameters that leave out some parameter bindings they
are supplied in the second section. I considered merging the two type parameter
sections, but that would complicate too many other things.
The current scheme is still unambiguous if we consider types. I.e. two consecutive
argument sections match a single formal parameter section if the first section
is named and the length of both argument sections together matches the number
of formal parameters.
Also, fix tests.1 parent d10a7b1 commit 3568757
File tree
4 files changed
+16
-6
lines changed- compiler/src/dotty/tools/dotc/typer
- tests
- neg
- pos
4 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
| 884 | + | |
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | | - | |
14 | | - | |
15 | 11 | | |
0 commit comments