Commit f7eb589
committed
Fix records with type parameters (#19578).
This fixes a whole host of subtle issues.
- The type parameter was not stamped correctly on the constructor
causing the original error
- The parsed record was not stamped with `JavaDefined`, which meant
the duplicate constructors in the case of overrides were not
removed.1 parent 64a8865 commit f7eb589
File tree
2 files changed
+7
-3
lines changed- compiler/src/dotty/tools/dotc
- parsing
- typer
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
| 875 | + | |
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
882 | 886 | | |
883 | 887 | | |
884 | 888 | | |
| |||
904 | 908 | | |
905 | 909 | | |
906 | 910 | | |
907 | | - | |
| 911 | + | |
908 | 912 | | |
909 | 913 | | |
910 | 914 | | |
| |||
0 commit comments