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

Extension methods on NewType not working since 1.0.0RC16 #1314

Open
dipucian opened this issue May 9, 2024 · 1 comment
Open

Extension methods on NewType not working since 1.0.0RC16 #1314

dipucian opened this issue May 9, 2024 · 1 comment

Comments

@dipucian
Copy link

dipucian commented May 9, 2024

Hi~ I'm trying to use NewType in a Scala 2.12 project and found that the example on the micro site about Defining Operators On New Types doesn't compile. The last working version is 1.0.0RC15. The compiler error is something like

value next is not a member of SequenceNumber
    sequenceNumber.next

Scala version: 2.12.19

@dipucian
Copy link
Author

dipucian commented May 9, 2024

Seems like this issue has been highlighted in #949 (comment) before, I hope there is a way to fix that since -Xsource is not recommended for production code.

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