Commit 0b8a353
committed
Fix #2697: Align avoid and checkNoLeaks logic
When checking for leaks we iterate over named parts which also
includes the underlying type of a TermRef. toAvoid needs to do
the same. We'd like to get a DRYer and less ad-hoc implementation
of avoid, but this does not look so easy. I tried several times
but failed so far.1 parent 1ee888a commit 0b8a353
File tree
2 files changed
+10
-2
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments