Skip to content

Remove deprecated extension method syntax #9839

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
eloots opened this issue Sep 21, 2020 · 0 comments
Closed

Remove deprecated extension method syntax #9839

eloots opened this issue Sep 21, 2020 · 0 comments

Comments

@eloots
Copy link
Contributor

eloots commented Sep 21, 2020

Minimized example

In 0.27.0-RC1 and 0.28.0 nightly build, the "old" syntax for defining extension methods is still supported, e.g.:

def (c: Circle) circumference: Double = c.radius * math.Pi * 2

This should no longer compile [at least at some point in time before Scala 3 is released].

Expectation

Even though there are arguments for keeping this old syntax supported to allow people to transition to the new syntax, it would be a good idea to not delay removing support for it.

odersky added a commit to dotty-staging/dotty that referenced this issue Sep 22, 2020
anatoliykmetyuk added a commit that referenced this issue Sep 25, 2020
Fix #9839: Drop old extension method syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants