Commit 59ea176
committed
Fix #7602: Avoid infinite loop with anonymous projection
`Type#findMember` has very careful logic for doing prefix substitution
with a recursive type, but it turns out we don't need to run any of that
if the prefix is already correct, and it avoids infinite loops in the
added testcase.1 parent 3cc436a commit 59ea176
File tree
2 files changed
+8
-0
lines changed- compiler/src/dotty/tools/dotc/core
- tests/pos
2 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments