Skip to content

Extension cannot have unnamed implicit parameters in both leading and following using sections #11020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
prolativ opened this issue Jan 7, 2021 · 0 comments · Fixed by #11079
Assignees
Milestone

Comments

@prolativ
Copy link
Contributor

prolativ commented Jan 7, 2021

Minimized code

trait Bar
trait Baz
extension (using Bar)(s: String)(using Baz) def foo = ???

Output

extension (using Bar)(s: String)(using Baz) def foo = ???
                                       ^^^
                                       x$1 is already defined as value x$1

Expectation

This should compile and an unconflicting name should be generated for the parameter of type Baz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants