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 ef6102a commit 3ca5b70Copy full SHA for 3ca5b70
compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -59,7 +59,7 @@ object TypeTestsCasts {
59
def apply(tp: Type) = tp match {
60
case tref: TypeRef if tref.typeSymbol.isPatternBound =>
61
WildcardType
62
- case tp if tp.hasAnnotation(defn.UncheckedAnnot) =>
+ case AnnotatedType(_, annot) if annot.symbol == defn.UncheckedAnnot =>
63
64
case _ => mapOver(tp)
65
}
0 commit comments