-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cyclic reference for top-level definitions of recursive match types #6362
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
Comments
This seems to still be happening for top level definitions of recursive match types |
For information, look like the code is accepted by dotr,but not by dotc. |
Indeed, it seems like the issue is top level definitions + recursive match types. I just wasted some time fighting it :P |
Having a look to the regression "tests/pos/6362.scala", my feeling is that it does not cover the case. Is it possible to rewrite-it without the "object Test" encapsulation, so that the "match type" is really at top level? |
Fixed by #9001. |
Uh oh!
There was an error while loading. Please reload this page.
The following exemple no more accepted
with the following error
The text was updated successfully, but these errors were encountered: