Commit 38e1086
committed
Allow normal parameters after given parameters
With the new given syntax, we can lift the restriction that normal
parameters cannot follow given parameters. This restriction was introduced
because with the previous syntax this looked too awkward.
The added test `given-eta` shows that eta expansion works as expected for these cases.1 parent 19b4216 commit 38e1086
File tree
6 files changed
+53
-335
lines changed- compiler/src/dotty/tools/dotc/parsing
- docs/docs/reference
- contextual-new
- contextual
- tests/run
6 files changed
+53
-335
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | | - | |
| 2852 | + | |
2853 | 2853 | | |
2854 | 2854 | | |
2855 | 2855 | | |
| |||
2858 | 2858 | | |
2859 | 2859 | | |
2860 | 2860 | | |
2861 | | - | |
2862 | | - | |
2863 | | - | |
2864 | | - | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
2870 | 2861 | | |
2871 | 2862 | | |
2872 | 2863 | | |
2873 | | - | |
| 2864 | + | |
2874 | 2865 | | |
2875 | 2866 | | |
2876 | 2867 | | |
2877 | | - | |
| 2868 | + | |
2878 | 2869 | | |
2879 | 2870 | | |
2880 | 2871 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 176 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments