Skip to content

misleading error for case class with leading using clause #15202

Closed
@rmgk

Description

@rmgk

Compiler version

At least 3.1.2 and 3.2.0-RC1-bin-20220514-bb29e20-NIGHTLY-git-bb29e20 (17.0.3, Java OpenJDK 64-Bit Server VM).

Minimized code

case class ACase(using Int)(normal: String)

Output

Error: A case class must have at least one non-implicit parameter list

Expectation

Either works using the first non-implicit argument list, or at least complains that it is not possible to have the first argument list implicit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SpreeSuitable for a future Spreearea:reportingError reporting including formatting, implicit suggestions, etcgood first issuePerfect for someone who wants to get started contributingitype:enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions