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

Trait stack modification on Function0[Unit] #11780

Open
PROteinBY opened this issue Oct 27, 2019 · 3 comments

Comments

@PROteinBY
Copy link

@PROteinBY PROteinBY commented Oct 27, 2019

Please check this page for an example and description: https://stackoverflow.com/questions/58580830/scala-stack-modifications-on-function0

@PROteinBY

This comment has been minimized.

Copy link
Author

@PROteinBY PROteinBY commented Oct 27, 2019

If you define you own Function0[+R] without @specialized it will work.

@som-snytt

This comment has been minimized.

Copy link

@som-snytt som-snytt commented Oct 27, 2019

@PROteinBY

This comment has been minimized.

Copy link
Author

@PROteinBY PROteinBY commented Oct 28, 2019

Related literature:

#4996
scala/scala#1173
scala/scala#7672

My issue is similar to the one described in #4996 but my case is failing in Scala 2.13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.