bug icon indicating copy to clipboard operation
bug copied to clipboard

Scala 2 bug reports only. Please, no questions — proper bug reports only.

Results 409 bug issues
Sort by recently updated
recently updated
newest added

Hi! It's been a while. ## Reproduction steps Scala version: 2.13.14 ```scala import Predef.implicitly object PredefBug { class P def test[X](x :X)(implicit p :X => P) :P = p(x) test...

``` scala> abstract case class C1(a: Int) | class C2(a: Int) extends C1(a) { override def productPrefix = "C2" } | class C3(a: Int) extends C1(a) { override def productPrefix...

## Reproduction steps install jdk 24 ``` $ java --version openjdk 24-ea 2025-03-18 OpenJDK Runtime Environment (build 24-ea+13-1421) OpenJDK 64-Bit Server VM (build 24-ea+13-1421, mixed mode, sharing) ``` launch Scala...

repl
jdk24

## Reproduction steps Scala version: 2.13.14 ```scala scala> "".tail val res0: String = "" scala> "".init val res1: String = "" scala> def tailOf[A](x: Seq[A]) = x.tail def tailOf[A](x: Seq[A]):...

help wanted
library:collections
good first issue

## Reproduction steps 2.13.14 ```scala //"-quickfix:cat=deprecation&msg=Auto-application", "-quickfix:msg=Auto-application", ``` ## Problem The compound filter results in nothing applied, though specifying either cat or msg by itself works. It is safer to...

Example: ```scala object D { def aaa = 1 //that’s the reason class Z (depends: Any) case object D1 extends Z(aaa) // 'null' when calling D.D1 first time case object...

backend

There is a corner case that occurs in the intersection of type application and method overloading. The following program shows an object `A` with an overloaded method `a`, in both...

should not compile
compiler crash
overloading

The following code: ```scala trait Semigroup[F] { self => def append(f1: F, f2: => F): F val z = 10 } object bug extends App { case class Box(i: Int)...

has PR
byname
sam
fixed in Scala 3

## Reproduction steps [Scastie](https://scastie.scala-lang.org/qzpy5VAcTGqGwDpj1GVFYw) Scala version: 2.13.14 scalac option `-Ydelambdafy:method` (which is the default setting, bug doesn't happen with `-Ydelambdafy:inline`) ```scala case class StringValue(value: String) extends AnyVal trait Foo[A] {...

has PR
fixed in Scala 3

This is a regression from 2.10.4, in which the following code compiles. ```scala Welcome to Scala version 2.11.1 (OpenJDK 64-Bit Server VM, Java 1.7.0_55). Type in expressions to have them...

fixed in Scala 3