Commit a6ed121
Fix additional test case
Certain macros could return nodes typed with incorrect ThisTypes, which
would reference module types outside of their scope.
We remap those problematic nodes to TermRefs pointing to objects, and
then possibly manually cast the returned node to the remapped type, as the
ensureConforms method would just leave the previous incorrect type after
confirming that the remapped type is a subtype of the previous incorrect
one.
[Cherry-picked 6771a79]1 parent 179cd93 commit a6ed121
File tree
6 files changed
+46
-6
lines changed- compiler/src/dotty/tools/dotc/inlines
- tests
- neg
- pos-macros/i13461-d
- pos
- run
6 files changed
+46
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
536 | 537 | | |
537 | | - | |
| 538 | + | |
538 | 539 | | |
539 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
540 | 558 | | |
541 | 559 | | |
542 | | - | |
| 560 | + | |
543 | 561 | | |
544 | | - | |
545 | | - | |
546 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
547 | 572 | | |
548 | 573 | | |
549 | 574 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
0 commit comments