You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] ./test.scala:10:26
[error] Double definition:
[error] def foo: Foo in object Foo at line 9 and
[error] def fooBincompat: Foo in object Foo at line 10
[error] have the same type (): Foo after erasure.
[error] @targetName("foo") def fooBincompat: Foo = foo
[error] ^
Expectation
I'm seeking a way that we can add the @static annotation post-facto without breaking binary-compatibility. So we need some way to retain or restore the old definition on the module.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.4.0-RC1-bin-20240106-c15cc9c-NIGHTLY
Minimized code
Output
Expectation
I'm seeking a way that we can add the
@static
annotation post-facto without breaking binary-compatibility. So we need some way to retain or restore the old definition on the module.The text was updated successfully, but these errors were encountered: