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
bridge generated for member method apply(nullable: Playground.Nullable[A]):A|Null in anonymous classObjectwithFunction1 {...}
which overrides method apply(v1: T1):R in traitFunction1
clashes with definition of the member itself; both have erased type (nullable: Object):Object."
Expectation
It should compile
The text was updated successfully, but these errors were encountered:
| def apply(x: C[A]) = x.value
| ^
|bridge generated for member method apply(x: C[A]): A in class F
|which overrides method apply(v1: T1): R in trait Function1
|clashes with definition of the member itself; both have erased type (x: Object): Object."
Yes this is the same as #1905 which is an unfixable limitaiton of value classes (at least until valhalla lands), so closing as won't fix unfortunately.
Compiler version
3.1.0
Minimized code
Output
Expectation
It should compile
The text was updated successfully, but these errors were encountered: