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 72313f8 commit 1ff7929Copy full SHA for 1ff7929
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1378,7 +1378,7 @@ object Types {
1378
def followOpaqueGADT(implicit ctx: Context): Type = widenDealias match {
1379
case site: TypeRef if site.symbol.is(Opaque) =>
1380
val bounds = ctx.gadt.bounds(site.symbol)
1381
- if (bounds != 0) bounds.hi else NoType
+ if (bounds != null) bounds.hi else NoType
1382
case AppliedType(tycon, args) =>
1383
val tycon1 = tycon.followOpaqueGADT
1384
if (tycon1.exists) tycon1.appliedTo(args)
0 commit comments