Skip to content

Commit 1ff7929

Browse files
committed
Fix typo
1 parent 72313f8 commit 1ff7929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ object Types {
13781378
def followOpaqueGADT(implicit ctx: Context): Type = widenDealias match {
13791379
case site: TypeRef if site.symbol.is(Opaque) =>
13801380
val bounds = ctx.gadt.bounds(site.symbol)
1381-
if (bounds != 0) bounds.hi else NoType
1381+
if (bounds != null) bounds.hi else NoType
13821382
case AppliedType(tycon, args) =>
13831383
val tycon1 = tycon.followOpaqueGADT
13841384
if (tycon1.exists) tycon1.appliedTo(args)

0 commit comments

Comments
 (0)