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 7bf86d2 commit d582a8fCopy full SHA for d582a8f
compiler/src/dotty/tools/dotc/ast/TreeInfo.scala
@@ -173,6 +173,7 @@ trait TreeInfo[T >: Untyped <: Type] { self: Trees.Instance[T] =>
173
case Typed(Ident(nme.WILDCARD_STAR), _) => true
174
case Typed(_, Ident(tpnme.WILDCARD_STAR)) => true
175
case Typed(_, tpt: TypeTree) => tpt.hasType && tpt.tpe.isRepeatedParam
176
+ case NamedArg(_, arg) => isWildcardStarArg(arg)
177
case _ => false
178
}
179
tests/pos/i3207.check
@@ -0,0 +1,2 @@
1
+WrappedArray()
2
+WrappedArray(A, B)
tests/pos/i3207.scala
@@ -0,0 +1,6 @@
+object Test extends App {
+ def foo(ff: String*) = ff
3
+ def bar(bb: String*) = foo(ff = bb: _*)
4
+ println(bar())
5
+ println(bar("A", "B"))
6
+}
0 commit comments