Skip to content

Generate a readable error message if syntectic copy method clashes with user-defined one #209

Closed
@DarkDimius

Description

@DarkDimius

Syntectic copy method in case classses has default arguments.
And leads to compilation error if user had also defined a copy method with default arguments as in dotty-staging@202a377#diff-ca3386647f5386b6f70e99f1a9e188cdR1982

I guess desugaring should not synthesize a copy method if user had defined any method named copy.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions