-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unresolved symbols assertion during pickling when inlining def with result type with non-object prefix #5572
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
I'm happy to take a swing at this. I'd be grateful for any pointers. |
You get a more detailed message by turning -Ycheck:all (or just -Ycheck:front) on. The issue is that |
Thanks. |
When dropping unused definitions during inlining we must also count references to terms which are reachable via the types of RefTrees. Fixes scala#5572.
PR here: #5646. |
When dropping unused definitions during inlining we must also count references to terms which are reachable via the types of RefTrees. Fixes scala#5572.
When dropping unused definitions during inlining we must also count references to terms which are reachable via the types of RefTrees. Fixes scala#5572.
Compiling the following,
Results in a compiler crash due to an assertion,
If we move the definition of
Id
out of the definition ofFoo
it compiles,It also compiles if we move the entire body of
Foo
intoBar
,The text was updated successfully, but these errors were encountered: