Commit 38ba335
committed
Fix CaptureSet.ofInfo for capture variables
This change now makes both the tests cc-poly-varargs and capturesubtyping
pass.
- Move CapSet-related methods to CaptureOps
- Let NamedType case in secondTry of TypeComparer handle capture variables as well
- Added a case in capturesubtyping test to test forgotten NamedType case above1 parent 05d1b50 commit 38ba335
File tree
4 files changed
+35
-31
lines changed- compiler/src/dotty/tools/dotc
- cc
- core
- tests/neg-custom-args/captures
4 files changed
+35
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
173 | 199 | | |
174 | 200 | | |
175 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1076 | 1079 | | |
1077 | 1080 | | |
1078 | 1081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 301 | | |
330 | 302 | | |
331 | 303 | | |
| |||
335 | 307 | | |
336 | 308 | | |
337 | 309 | | |
338 | | - | |
339 | | - | |
| 310 | + | |
| 311 | + | |
340 | 312 | | |
341 | 313 | | |
342 | 314 | | |
| |||
389 | 361 | | |
390 | 362 | | |
391 | 363 | | |
392 | | - | |
| 364 | + | |
393 | 365 | | |
394 | 366 | | |
395 | 367 | | |
| |||
477 | 449 | | |
478 | 450 | | |
479 | 451 | | |
| 452 | + | |
| 453 | + | |
480 | 454 | | |
481 | 455 | | |
482 | 456 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments