Skip to content
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

Warning with -Xsource:2.14 #55

Open
jhnsmth opened this issue Sep 29, 2019 · 0 comments
Open

Warning with -Xsource:2.14 #55

jhnsmth opened this issue Sep 29, 2019 · 0 comments

Comments

@jhnsmth
Copy link
Contributor

jhnsmth commented Sep 29, 2019

On Scala 2.13 with -Xsource:2.14 compiler option, newtype macro gives the following warning

Auto-application to `()` is deprecated. Supply the empty argument list `()` explicitly to invoke method hashCode, 
or remove the empty argument list from its definition (Java-defined methods are exempt).
In Scala 3, an unapplied method like this will be eta-expanded into a function.

It makes newtypes unusable with both this option and -Xfatal-warnings enabled

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

No branches or pull requests

1 participant