File tree 1 file changed +2
-6
lines changed
src/dotty/tools/dotc/transform 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ import scala.annotation.tailrec
18
18
*/
19
19
object OverridingPairs {
20
20
21
- private val ExcludedType = ExpandedName .toTypeFlags | TypeArgument
22
-
23
21
/** The cursor class
24
22
* @param base the base class that contains the overriding pairs
25
23
*/
@@ -111,7 +109,7 @@ object OverridingPairs {
111
109
@ tailrec def loop (): Unit =
112
110
if (curEntry ne null ) {
113
111
overriding = curEntry.sym
114
- if (visited.contains(overriding) || exclude(overriding) ) {
112
+ if (visited.contains(overriding)) {
115
113
curEntry = curEntry.prev
116
114
loop()
117
115
}
@@ -130,9 +128,7 @@ object OverridingPairs {
130
128
nextEntry = decls.lookupNextEntry(nextEntry)
131
129
if (nextEntry ne null ) {
132
130
overridden = nextEntry.sym
133
- if (overriding.owner != overridden.owner &&
134
- matches(overriding, overridden) &&
135
- ! exclude(overridden)) {
131
+ if (overriding.owner != overridden.owner && matches(overriding, overridden)) {
136
132
visited += overridden
137
133
if (! hasCommonParentAsSubclass(overriding.owner, overridden.owner)) return
138
134
}
You can’t perform that action at this time.
0 commit comments