Commit 3c138ea
committed
Tighten "mightBeDropped" criterion
The problem is that outer accessors can also be called from outside a class definition,
e.g. as part of pattern matching or type testing. So we have to be more conservative
where to remove them. A drastic measure is to restrict to anonaymous classes only,
which is what this commit does.1 parent a475e47 commit 3c138ea
File tree
1 file changed
+5
-1
lines changed- compiler/src/dotty/tools/dotc/transform
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
0 commit comments