Skip to content

Commit 2492300

Browse files
committed
Test removing typerState's null check
1 parent c53297c commit 2492300

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,6 @@ class Namer { typer: Typer =>
790790
if (Config.showCompletions && ctx.typerState != creationContext.typerState) {
791791
def levels(c: Context): Int =
792792
if (c.typerState eq creationContext.typerState) 0
793-
else if ((c.typerState: TyperState | Null) == null) -1
794793
else if (c.outer.typerState == c.typerState) levels(c.outer)
795794
else levels(c.outer) + 1
796795
println(s"!!!completing ${denot.symbol.showLocated} in buried typerState, gap = ${levels(ctx)}")

0 commit comments

Comments
 (0)