Skip to content

Export clauses drop varargs on inline methods #10724

Closed
@CiaraOBrien

Description

@CiaraOBrien

On 3.0.0-M2:

Minimized code

object Exporter {
  object Exportee {
    inline def foo(args: String*): String = args.mkString(" ")
  }
  export Exportee._
}
import Exporter._
foo("a", "b", "c")

Output

1 |foo("a", "b", "c")
  |    ^^^^^^^^^^^^^
  |    Found:    (args$proxy1 : Seq[String])
  |    Required: String

Expectation

val res0: String = a b c

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions