Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 15, 2021

A vararg splice must be the only argument for a repeated parameter.

Fixes #11419

@smarter
Copy link
Member

smarter commented Feb 15, 2021

Build failure in scaladoc/compile:

 Error:  -- Error: /__w/dotty/dotty/scaladoc/src/dotty/tools/scaladoc/renderers/MemberRenderer.scala:89:6 
Error:  89 |      m.docs.map(_.deprecated.toSeq.map(renderDocPart)):_*
Error:     |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error:     |Sequence argument type annotation `*` cannot be used here:
Error:     |it is not the only argument to be passed to the corresponding repeated parameter A*

Looks like that code needs to be fixed to do a Seq(..) ++ foo instead of Seq(.., foo: _*)

@smarter smarter enabled auto-merge February 15, 2021 19:34
A vararg splice must be the only argument for a repeated parameter.
@smarter smarter merged commit 7f48c4c into scala:master Feb 15, 2021
@smarter smarter deleted the fix-11419 branch February 15, 2021 20:35
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

simplified vararg example error

3 participants