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
a method with a parameter of type ValueOf[I] where I <: Int will erase to java.lang.Integer and not java.lang.Object as the descriptor of Values.reify requires
reproduction steps
using Scala (2.13.4),
// compile with Scala 3.0.0-M2objectValues {
defreify[I<:Int](implicitI:ValueOf[I]):I= valueOf[I]
}
// compile with Scala 2.13.4objectTestextendsApp {
println(Values.reify[3])
}
problem
runtime error:
[error] Test scala.tools.tastytest.TastyTestJUnit.run failed: java.lang.NoSuchMethodError: tastytest.Values$.reify(Ljava/lang/Integer;)I, took 18.115 sec
[error] at tastytest.TestValues$.$anonfun$new$1(TestValues.scala:8)
[error] at tastytest.Suite.$anonfun$runImpl$2(Suite.scala:49)
[error] at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
[error] at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
[error] at scala.collection.AbstractIterable.foreach(Iterable.scala:919)
[error] at scala.collection.IterableOps$WithFilter.foreach(Iterable.scala:889)
[error] at tastytest.Suite.runImpl(Suite.scala:48)
[error] at tastytest.Suite.main(Suite.scala:40)
[error] at tastytest.TestValues.main(TestValues.scala)
The text was updated successfully, but these errors were encountered:
I believe this is actually an issue on the dotty side, the descriptor for Values.reify is (Ljava/lang/Object;)I but in scala 2 would be (Ljava/lang/Integer;)I
Uh oh!
There was an error while loading. Please reload this page.
a method with a parameter of type
ValueOf[I]
whereI <: Int
will erase tojava.lang.Integer
and notjava.lang.Object
as the descriptor ofValues.reify
requiresreproduction steps
using Scala (2.13.4),
problem
runtime error:
The text was updated successfully, but these errors were encountered: