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
Exception in thread "main" java.lang.NoSuchMethodError:'voidFoo.foo(C)'
at s3$package$.Test(s3.scala:2)
at Test.main(s3.scala:1)
Expectation
To not fail at runtime.
Notes
Issue discovered in #22517. Related to #22524.
I also find that the specification is very ambiguous about the erasure of compound types. In the sense where:
We claim that: The intersection dominator of a list of types $T_1,...,T_n$ is computed as follows. Let $T_{i_1},...,T_{i_m}$ be the subsequence of types $T_i$ which are not supertypes of some other type $T_j$...
What is the relation between $i$ and $j$ ($i < j$, $i > j$, we don't care) ?
What is the subsequence: The empty subsequence is valid here. Should it be the maximal one?
What if we have two classes, do we take the first class?
In this issue, these details can change the erasure of foo. I know that we will have to follow the implementation of Scala 2 anyway, but the spec should be clear about these details.
The text was updated successfully, but these errors were encountered:
Compiler version
a3dde8b
Minimized code
In the same spirit of #22515:
Then use the classfiles from Scala 2 when compiling the second file with Scala 3
Output
Expectation
To not fail at runtime.
Notes
Issue discovered in #22517. Related to #22524.
I also find that the specification is very ambiguous about the erasure of compound types. In the sense where:
In this issue, these details can change the erasure of
foo
. I know that we will have to follow the implementation of Scala 2 anyway, but the spec should be clear about these details.The text was updated successfully, but these errors were encountered: