Commit 87f5347
committed
Accept untyped children of typed trees in error cases
This happens, e.g. in realApply in Applications. Change
TreeAccumulator and TreeMap to survive on untyped
tree nodes in error cases. Also, add a configurable check
that typed nodes point to untyped ones only in error cases.1 parent 915ff94 commit 87f5347
File tree
2 files changed
+32
-1
lines changed- compiler/src/dotty/tools/dotc
- ast
- config
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
120 | 141 | | |
121 | 142 | | |
122 | 143 | | |
| |||
1177 | 1198 | | |
1178 | 1199 | | |
1179 | 1200 | | |
| 1201 | + | |
| 1202 | + | |
1180 | 1203 | | |
1181 | 1204 | | |
1182 | 1205 | | |
| |||
1282 | 1305 | | |
1283 | 1306 | | |
1284 | 1307 | | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1285 | 1311 | | |
1286 | 1312 | | |
1287 | 1313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| 169 | + | |
| 170 | + | |
166 | 171 | | |
0 commit comments