-
Notifications
You must be signed in to change notification settings - Fork 1.1k
assertion failed: no extension method found for #6989
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 can't reproduce this using the code you provided here, tried all releases from |
Thanks for looking into it. I was unable to reproduce this today on the minimized code (I must have minimized too much before posting), but I can still reproduce this compiler crash with the original code. I will post an updated code example in the next few days. |
@bishabosha I updated the example. The second file needs to be under https://github.com/thesamet/dotty-issue6989 - Clone and reproduce with Travis log: https://travis-ci.org/thesamet/dotty-issue6989/builds/572359692 |
Yes I can definitely reproduce this example now, thank you for updating. |
…ckling scalacLinkedClass uses unforcedDecls which might miss a companion object when unpickling. I tried to make scalacLinekdClass stricter, but ran into problems. It turns out that it is finely balanced as it is. The fix is to make sure the owner is completed before calling scalacLinkedClass from an unpickler.
Fix #6989: Make sure scalacLinkedClass finds companion when unpickling
Uh oh!
There was an error while loading. Please reload this page.
minimized code
In another file in
src/test/scala
directory:The problem goes away if I rename the trait from
Container
to anything else. It appears to be related to the trait and the companion object having the same name.Stack trace
The text was updated successfully, but these errors were encountered: