Skip to content

Incorrect error message when not specifying curryed vararg parameters #14567

Closed
@anatoliykmetyuk

Description

@anatoliykmetyuk

Compiler version

3.1.1

Minimized code & Output

scala> case class Foo(x: Int)(xs: String*)
// defined case class Foo

scala> Foo(3)
-- [E081] Type Error: ----------------------------------------------------------
1 |Foo(3)
  |^
  |Missing parameter type
  |
  |I could not infer the type of the parameter xs.
1 error found

Expectation

Notify the user that the argument list for xs is mandatory instead of telling them that the type cannot be inferred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcitype:bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions