File tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/ast 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -443,8 +443,7 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
443
443
(sym == receiver.symbol) || {
444
444
receiver match {
445
445
case Apply (_, _) => op.isOpAssignmentName // xs(i) += x
446
- case _ => receiver.symbol != null &&
447
- (receiver.symbol.isGetter || receiver.symbol.isField) // xs.addOne(x) for var xs
446
+ case _ => receiver.symbol.isGetter || receiver.symbol.isField // xs.addOne(x) for var xs
448
447
}
449
448
}
450
449
@ tailrec def loop (mt : Type ): Boolean = mt match {
@@ -457,7 +456,7 @@ trait TreeInfo[T <: Untyped] { self: Trees.Instance[T] =>
457
456
case PolyType (_, restpe) => loop(restpe)
458
457
case _ => false
459
458
}
460
- fun.symbol != null && loop(fun.symbol.info)
459
+ loop(fun.symbol.info)
461
460
}
462
461
case _ =>
463
462
tree.tpe.isInstanceOf [ThisType ]
You can’t perform that action at this time.
0 commit comments