bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
## Reproduction steps Scala version: 2.13 ``` // Step 1: Define the case class Person case class Person(name: String, age: Int, id: Int) // Step 2: Define the companion object...
## Reproduction steps https://openjdk.org/jeps/476 Scala version: 2.13.14 ``` $ java --version openjdk 23-ea 2024-09-17 OpenJDK Runtime Environment (build 23-ea+25-2094) OpenJDK 64-Bit Server VM (build 23-ea+25-2094, mixed mode, sharing) ``` `B.scala`...
## reproduction steps Scala 2.13.4 is supposed to implement the following: > Guards (case .. if .. =>) no longer disable the exhaustivity checker. Rather, the checker checks for exhaustivity...
## Reproduction steps Java: Oracle HotSpot 17.0.6+9-LTS-190, OpenJDK Temurin-17.0.8+7. Scala versions: 2.13.10, 2.13.14. I faced the behaviour using spray json ("io.spray" %% "spray-json" % "1.3.6"), and I couldn't minimise the...
Scala 2.13.14 ```scala @deprecated abstract class K { def prop: Boolean } class Test { @annotation.nowarn("cat=deprecation") def l: List[K] = Nil def t = l collect { case k if...
## Reproduction steps ``` $ cat debug2.scala //> using scala 2.13.14 //> using dep "org.scalameta:scalafmt-dynamic_2.13:3.8.1" import coursierapi.shaded.coursier.util.shaded.org.jsoup.internal.StringUtil object A extends App { def debug() = println(StringUtil.isBlank(" ")) } $ scala-cli...
Spurious deprecation warning when the type of a bound value in a pattern is deprecated. Scala 2.13.14: ```scala scala> @deprecated class K class K scala> def k = Option(new K)...
Firstly, the following codes compile fine while run with exception: ```scala scala> import scala.collection.SeqLike import scala.collection.SeqLike scala> val xs: SeqLike[Char, String] = "abcdef" xs: scala.collection.SeqLike[Char,String] = abcdef scala> xs match...
Scala version: 2.12.6 Java version: 8 I have a series of scripts that are evaluated with the Scala ScriptEngine like so ```java for (Script script : plugin.getScripts()) { try {...
On 2.13.14 ```scala abstract class A(val id: String) // `B.id` has alias `A.id`, no field in `B` abstract class B(override val id: String) extends A(id) // `idC` has no alias,...