Open DavidPerezIngeniero opened 3 months ago
//> using dep org.python:jython-standalone:2.7.3
//> using scala 3
@main def main = {
val x = new org.python.core.PyList
import scala.jdk.CollectionConverters._
println(x.asScala)
}
Might be helpful to minimize to a Java snippet, rather than using org.python:jython-standalone:2.7.3
Compiler version
3.3.3 and 3.4.2
Minimized code
Scala 3.4.2 behaves like 3.3.3
Output
Scala 3 doesn't compile, Scala 2 does.
Expectation
Scala 2 and 3 behave the same
Notes
Take into account that PyList is just a wrapper around
java.util.List:
https://stackoverflow.com/questions/78811147/scala-3-bug-in-collection-conversions