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 a27ac72 commit e5509a0Copy full SHA for e5509a0
src/dotty/tools/dotc/parsing/Parsers.scala
@@ -339,7 +339,7 @@ object Parsers {
339
def isWildcard(t: Tree): Boolean = t match {
340
case Ident(name1) => placeholderParams.nonEmpty && name1 == placeholderParams.head.name
341
case Typed(t1, _) => isWildcard(t1)
342
- case Annotated(t1, _) => isWildcard(t1)
+ case t: Annotated => isWildcard(t.arg)
343
case Parens(t1) => isWildcard(t1)
344
case _ => false
345
}
0 commit comments