Skip to content

Disallow having a value classe whose underlying value is itself #1642

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
helloqirun opened this issue Oct 29, 2016 · 2 comments
Closed

Disallow having a value classe whose underlying value is itself #1642

helloqirun opened this issue Oct 29, 2016 · 2 comments

Comments

@helloqirun
Copy link

helloqirun commented Oct 29, 2016

dotc crashes when compiling the follow code.

$ cat abc.scala

class Test2(val valueVal: Test2) extends AnyVal

$ dotc abc.scala
output:
https://gist.github.com/helloqirun/d09e36c276832140e7c74d1f26378a14

@smarter
Copy link
Member

smarter commented Oct 29, 2016

Since the error message contains 989 lines, I have cut most of lines.

For very long output, you can paste them on https://gist.github.com/ and put a link in your issue.

@helloqirun
Copy link
Author

Thanks, updated.

@smarter smarter changed the title crash with "java.lang.StackOverflowError" Disallow having a value classe whose underlying value is itself Oct 29, 2016
@liufengyun liufengyun self-assigned this Nov 7, 2016
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 7, 2016
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 7, 2016
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 7, 2016
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 8, 2016
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 15, 2016
liufengyun added a commit to dotty-staging/dotty that referenced this issue Nov 16, 2016
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

3 participants