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

See the pending test in: https://github.com/scala/scala/commit/3e9e2c65a6a0144edbf86949295e776c8cdf2e67 Follow up to #8128

patmat
existential

(Apologies if this is the wrong place to mention this enhancement request.) I spent about ten minutes discovering this one the hard way yesterday: * Go into [the 2.12 ScalaDocs](http://www.scala-lang.org/api/2.12.2/scala/index.html)...

help wanted
scaladoc tool

both Scala 2.12.20 and Scala 3.6.3 give an unreachable warning but Scala 2.13 does not: ```scala trait Tree object Tree { def unapply(tree: Tree): Some[Int] = ??? } object Test...

patmat
errors and warnings

[scalafiddle](https://scalafiddle.io/sf/lZVTgxB/0); repros on 2.12.8 and 2.13.0 ```scala sealed trait A[+T] case class A1[+T](t : T ) extends A[T] case class A2[+T](t1: T, t2: T) extends A[T] sealed trait B[+T] {...

patmat
lint
errors and warnings

Based on a [this discussion](https://github.com/scala/scala/pull/1251/files#r1573933) related to both #5064 #8125, it was suggested by Iulian that `CompilerControl.askTypeAt(pos)` would be changed so that it returns the whole chain of parents (with...

presentation compiler
enhancement

According to [JLS 4.4](https://docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.4), the type bounds of a type variable must either be a single type variable, or an intersection of a class or interface followed by zero or...

java interop

Anonymous class can derive from serializable base class (either via java.io.Serializable or @serializable). Currently, there is no way to associate a serialVersionUID with the anonymous class. ```scala @serializable trait Foo...

serialization
enhancement

```scala class TypeTest { type Foldable[X[_]] = X[_] def forComp[Coll[X]

compiler crash

It *appears* that if you have three ambiguous implicits, and `@implicitAmbiguous` is on the "third", the custom error message will not be noticed. @Jasper-M suggested a documentation fix, because of...

implicit

It seems that type parameter bounds on existential types are not used to enforce the exhaustiveness of pattern matching. This causes errors at runtime if you forget to supply a...

patmat
existential
fixed in Scala 3