Skip to content

Commit fd61bf2

Browse files
committed
Revert quadratic blowup on mapping AnnotatedType
1 parent 0a53c49 commit fd61bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ object TypeTestsCasts {
5959
def apply(tp: Type) = tp match {
6060
case tref: TypeRef if tref.typeSymbol.isPatternBound =>
6161
WildcardType
62-
case tp if tp.hasAnnotation(defn.UncheckedAnnot) =>
62+
case AnnotatedType(_, annot) if annot.symbol == defn.UncheckedAnnot =>
6363
WildcardType
6464
case _ => mapOver(tp)
6565
}

0 commit comments

Comments
 (0)