Skip to content

Commit 996424e

Browse files
committed
Code simplification
1 parent 5ce951f commit 996424e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,11 +1397,8 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
13971397
tp
13981398
}
13991399

1400-
val owner1 = if (alt1.symbol.exists) alt1.symbol.owner else NoSymbol
1401-
val owner2 = if (alt2.symbol.exists) alt2.symbol.owner else NoSymbol
1402-
val ownerScore = compareOwner(owner1, owner2)
1403-
14041400
def compareWithTypes(tp1: Type, tp2: Type) = {
1401+
val ownerScore = compareOwner(alt1.symbol.maybeOwner, alt2.symbol.maybeOwner)
14051402
def winsType1 = isAsSpecific(alt1, tp1, alt2, tp2)
14061403
def winsType2 = isAsSpecific(alt2, tp2, alt1, tp1)
14071404

0 commit comments

Comments
 (0)