We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d705c1b commit 31afb35Copy full SHA for 31afb35
compiler/src/dotty/tools/dotc/core/NullOpsDecorator.scala
@@ -52,8 +52,7 @@ object NullOpsDecorator:
52
}
53
54
def admitsNull(using Context): Boolean = {
55
- val widened = self.widenDealias
56
- widened.isNullType || widened.isAny || (widened match
+ self.isNullType || self.isAny || (self match
57
case OrType(l, r) => r.admitsNull || l.admitsNull
58
case AndType(l, r) => r.admitsNull && l.admitsNull
59
case TypeBounds(lo, hi) => lo.admitsNull
0 commit comments