Skip to content

Commit 18370f5

Browse files
committed
handle unchecked annotations
1 parent c91ee59 commit 18370f5

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
@@ -144,7 +144,7 @@ object TypeTestsCasts {
144144
case _ => recur(defn.AnyType, tpT)
145145
}
146146
case tpe @ AppliedType(tycon, targs) if !trustTypeApplication =>
147-
val abstractArgs = targs.filter(isAbstract)
147+
val abstractArgs = targs.filter(arg => isAbstract(arg) && !arg.isInstanceOf[WildcardType] )
148148
if abstractArgs.nonEmpty && !tycon.classSymbol.is(Final) then
149149
i"type arguments $abstractArgs refer to abstract types,"
150150
else

0 commit comments

Comments
 (0)