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

Consider following code ```scala package crafts object Main { def main(args: Array[String]): Unit = { val obj = new Combined println(s"obj: ${obj}") } class Combined extends SuppressToString with WrapToString abstract...

runtime crash

I am not sure if this is only Predef.String. There may be other classes having the same issue. This bug means we have to always use =:=, instead of ==...

reflection
dealias

```scala object Test { class Foo[A, B] { def bar[T](v: A => A = (identity _)) = Unit // 2.10 => OK // 2.11 => OK def bar[T](v: A =>...

infer
fixed in Scala 3

Below are a few examples involving type aliases and refinement types that show how among several equivalent types, some can be resolved implicitly while others cannot. ```scala object Main {...

typelevel
fixed in Scala 3

There are four key optimizations that Mondrian's optimizer could make but doesn't. Mondrian's optimizer is smart enough to turn `if (true) a else b` into `a`. To my delight, it...

optimizer
enhancement

=== What steps will reproduce the problem (please be specific and use wikiformatting)? === The following code crashes with a `NoSuchMethodError`: ```scala final class Outer { sealed trait Inner final...

patmat
minimized
runtime crash
fixed in Scala 3

I will minimize this after Typelevel Summit, but filing a placeholder now. * Scala version: 2.13.0-M5 * Java version: 1.8.0_151 In [this snippet](https://github.com/http4s/http4s/blob/733a82634558bf29b0993404e8665a0d76b920a3/server/src/test/scala/org/http4s/server/middleware/StaticHeadersSpec.scala#L10-L15), the `Ok(req.body)` is [falsely flagged as unreachable...

regression
errors and warnings

```scala class C[T

f-bounds
compiler crash
typer
existential

I would like to be able to write this: for{x = foo(bar); y

help wanted
enhancement

``` Welcome to Scala 2.13.0-pre-1f68c6c (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_181). Type in expressions for evaluation. Or try :help. scala> class A[B](val b: B) { def c: List[b.type] =...

typer
fixed in Scala 3