Commit ef83bd2
Tweak refineUsingParent drop conditions
In tests/pos/i21790.scala, O.A has no class symbol, because it's an
inaccessible private class of S. But in tests/warn/i21860.scala,
Shape.Triangle doesn't have a "classSymbol" because it has multiple -
Shape and Corners. So use .classSymbols.isEmpty instead of
!.classSymbol.exists
[Cherry-picked 21e5f3c]1 parent 185188c commit ef83bd2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
| 947 | + | |
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| |||
0 commit comments