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 c91ee59 commit 18370f5Copy full SHA for 18370f5
compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala
@@ -144,7 +144,7 @@ object TypeTestsCasts {
144
case _ => recur(defn.AnyType, tpT)
145
}
146
case tpe @ AppliedType(tycon, targs) if !trustTypeApplication =>
147
- val abstractArgs = targs.filter(isAbstract)
+ val abstractArgs = targs.filter(arg => isAbstract(arg) && !arg.isInstanceOf[WildcardType] )
148
if abstractArgs.nonEmpty && !tycon.classSymbol.is(Final) then
149
i"type arguments $abstractArgs refer to abstract types,"
150
else
0 commit comments