Skip to content

Commit b60f085

Browse files
committed
Fixes of reviewers comments.
1 parent 222e9a4 commit b60f085

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/dotty/tools/dotc/transform/OverridingPairs.scala

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import scala.annotation.tailrec
1818
*/
1919
object OverridingPairs {
2020

21-
private val ExcludedType = ExpandedName.toTypeFlags | TypeArgument
22-
2321
/** The cursor class
2422
* @param base the base class that contains the overriding pairs
2523
*/
@@ -111,7 +109,7 @@ object OverridingPairs {
111109
@tailrec def loop(): Unit =
112110
if (curEntry ne null) {
113111
overriding = curEntry.sym
114-
if (visited.contains(overriding) || exclude(overriding)) {
112+
if (visited.contains(overriding)) {
115113
curEntry = curEntry.prev
116114
loop()
117115
}
@@ -130,9 +128,7 @@ object OverridingPairs {
130128
nextEntry = decls.lookupNextEntry(nextEntry)
131129
if (nextEntry ne null) {
132130
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)) {
136132
visited += overridden
137133
if (!hasCommonParentAsSubclass(overriding.owner, overridden.owner)) return
138134
}

0 commit comments

Comments
 (0)