Skip to content

Commit 1e34d2d

Browse files
committed
Don't crash when taking the signature of NoType
I noted this happening from tyoime to time in the IDE, and it is super annoying when it happens. Let's see if we can survive meaningfully after ignoring this condition.
1 parent e7a5438 commit 1e34d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
549549
if (inst.exists) sigName(inst) else tpnme.Uninstantiated
550550
case tp: TypeProxy =>
551551
sigName(tp.underlying)
552-
case _: ErrorType | WildcardType =>
552+
case _: ErrorType | WildcardType | NoType =>
553553
tpnme.WILDCARD
554554
case tp: WildcardType =>
555555
sigName(tp.optBounds)

0 commit comments

Comments
 (0)