Commit 4357f7e
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 57ab137 commit 4357f7e
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 | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
| 1104 | + | |
| 1105 | + | |
1105 | 1106 | | |
1106 | | - | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1107 | 1121 | | |
1108 | 1122 | | |
1109 | 1123 | | |
1110 | 1124 | | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1119 | 1129 | | |
1120 | 1130 | | |
1121 | 1131 | | |
| |||
1210 | 1220 | | |
1211 | 1221 | | |
1212 | 1222 | | |
1213 | | - | |
| 1223 | + | |
1214 | 1224 | | |
1215 | 1225 | | |
1216 | 1226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2102 | 2102 | | |
2103 | 2103 | | |
2104 | 2104 | | |
| 2105 | + | |
2105 | 2106 | | |
2106 | | - | |
| 2107 | + | |
2107 | 2108 | | |
2108 | 2109 | | |
2109 | 2110 | | |
2110 | 2111 | | |
2111 | 2112 | | |
2112 | 2113 | | |
2113 | 2114 | | |
2114 | | - | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | | - | |
| 2115 | + | |
2119 | 2116 | | |
2120 | 2117 | | |
2121 | 2118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
0 commit comments