-
Notifications
You must be signed in to change notification settings - Fork 1.1k
No generic signature emitted for def in object #8631
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
The issue here is that the Dotty backend does not demand a generic signature for forwarders. Both scalac and dotc generate a static signature for I verified that the |
Closing as a duplicate of #10347 where I provided a workaround: #10347 (comment) |
minimized code
Compilation output
expectation
compile successfully as in scala 2
inspect
Decompile Behaviors.class using Procyon v0.5.36:
Notice the lack of generic signature on
same()
method.maybe relate: #6350
The text was updated successfully, but these errors were encountered: