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

## Reproduction steps Scala version: 2.13.8, full example on Scastie: https://scastie.scala-lang.org/g1aCjox4QBylJgfllSoBAQ ```scala trait BIO[F[+_, +_]] trait EitherT[F[_], E, A] def makeWithNativeTypeProjection[F[_]] = new BIO[({type L[+E, +A] = EitherT[F, E @uncheckedVariance,...

typer
fixed in Scala 3

## Reproduction steps Scala version: 2.13.8 ```scala trait MapI[C] { def i: Int def s: String def copy(i: Int = this.i, s: String = this.s): C def mapI(i: Int): C...

has PR
fixed in Scala 3

## Reproduction steps ```scala object repro { trait ScenarioParam { type Builder null) ^ test/files/pos/stabilizer-cyclic.scala:43: error: cyclic aliasing or subtyping involving type Builder stabilizer.m1(x => null) ^ test/files/pos/stabilizer-cyclic.scala:46: error: cyclic...

regression
Lightbend support

The following code snipet : https://gist.github.com/1427587 does not compile. ```scala import java.util.Date trait TDate trait TT[A1,T1] trait TTFactory[F,G] { def create(f: F) : TT[F,G] def sample: F } object Impls...

help wanted
has PR
usability
implicit
good first issue
errors and warnings

## Reproduction steps ```scala ➜ ~ skala -Xsource:3 Welcome to Scala 2.13.9-20220720-072233-0771b75 (OpenJDK 64-Bit Server VM, Java 18.0.1.1). Type in expressions for evaluation. Or try :help. scala> class C {...

help wanted
typer

## Reproduction steps Scala version: 2.13.8 ```scala sealed trait ImplicitlyStable[A, +B] object ImplicitlyStable { implicit def convertibleToStable[A, B](implicit aToB: A => B, bToB: ImplicitlyStable[B, B] ): ImplicitlyStable[A, B] = ???...

implicit
fixed in Scala 3

## Reproduction steps Scala version: 2.13.8 (But I think all scala 2.13 releases have this issue) ```scala trait Base { type T def value: T } object Base { implicit...

typer
fixed in Scala 3

## Reproduction steps Scala version: 2.13.6 ```scala val someSeq = Seq(1).toSeq for (i Random.nextBoolean()).sum) } ``` The above is very likely to produce a stack trace like this: ``` java.lang.UnsupportedOperationException:...

help wanted
library:collections

## References Follow-up to https://github.com/scala/bug/issues/12464 ## Problem `ArrayBuilder` doesn't attempt smart resizing as the size grows large. It still just tries naive doubling of size. When user offers a `sizeHint`,...

help wanted
library:collections

Having the following project structure ``` . ├── README.md ├── build.sbt ├── core │   └── src │   └── main │   └── scala │   ├── Main.scala │   ├── bar │   │  ...

annotations
macros
compiler determinism