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

``` scala> class Foo[S] { type X = List[S]; val x: X = List() } defined class Foo scala> new Foo[Int].x : List[Int] res0: List[Int] = List() scala> def foo[S]...

typer
fixed in Scala 3

``` [nix-shell:/code/scala/sandbox]$ cat Test.scala class Q {{ object F { def apply(): Int = 1 } trait L { def x = F() } class X() extends L { def...

mixin
runtime crash
fixed in Scala 3

In the following example, the last case is inferred to be of type Any (and therefore does not compile), whereas for both checks T is a common supertype: ```scala object...

patmat
enhancement
fixed in Scala 3

Since Scala 2.11.0, case classes can have an arbitrary number of fields (well, up to JVM limits which I believe is ~256). However, these newly unleached gargantuan classes can easily...

``` scala package p private[p] trait T { /** @template */ type A } object O extends T ``` ``` $ scaladoc -version Scaladoc version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL...

scaladoc tool
compiler crash
fixed in Scala 3

On the latest nightly build I see: ``` [Generate bytecode from ASTs using the ASM library in -856010314ms] ``` cc @jvican

```scala class Cake { trait Foo[T] object Foo { // if FooString is replaced with fooString, everything works // implicit val fooString = new Foo[String] {} implicit object FooString extends...

infer
dependent types
implicit
fixed in Scala 3

Can you do something to avoid x$3 in error message? I think that `ls` instead of `x$3` will be much better ```scala type OI = Option[Int] def boo(z: OI, ls:...

usability
enhancement

Compile the following: ```scala // testinherit.scala abstract class A { type Foo def bar(foo: Foo): Unit } class BFoo { } class CFoo extends BFoo { } class B extends...

errors and warnings
fixed in Scala 3

Created and compiled class: ```scala abstract class B { protected def println(): Unit } ``` Javap shows for me: ```java public abstract class B implements scala.ScalaObject { public abstract void...

backend