Commit b077100
committed
change checking: now add missing enum parent to class
an error is reported when an enum does not have a parent
the missing enum class is then added as a parent with appropriate
type arguments.
The body of the enum implementation class will now always
be typechecked1 parent d692104 commit b077100
File tree
4 files changed
+27
-18
lines changed- compiler/src/dotty/tools/dotc
- ast
- typer
- tests/neg
4 files changed
+27
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
| 1105 | + | |
| 1106 | + | |
1106 | 1107 | | |
1107 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
1108 | 1122 | | |
1109 | 1123 | | |
1110 | 1124 | | |
1111 | 1125 | | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1120 | 1130 | | |
1121 | 1131 | | |
1122 | 1132 | | |
| |||
1211 | 1221 | | |
1212 | 1222 | | |
1213 | 1223 | | |
1214 | | - | |
| 1224 | + | |
1215 | 1225 | | |
1216 | 1226 | | |
1217 | 1227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
| 2073 | + | |
2073 | 2074 | | |
2074 | | - | |
| 2075 | + | |
2075 | 2076 | | |
2076 | 2077 | | |
2077 | 2078 | | |
2078 | 2079 | | |
2079 | 2080 | | |
2080 | 2081 | | |
2081 | 2082 | | |
2082 | | - | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
| 2083 | + | |
2087 | 2084 | | |
2088 | 2085 | | |
2089 | 2086 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
0 commit comments