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

Currently it is possible to match a parametric case class with correct type like so: ```scala case class Register[T](key: Key[T], value: T) ... x match { case r: Register[t] =>...

patmat
enhancement

This will be a direct port from this PR: https://github.com/scala/scala/pull/7192 which is in turn dependent on https://github.com/scala/scala/pull/7118 And once it does, we should add this test in junit ```scala var...

library:collections

Otherwise, the stacktrace of the code calling `Failure.get` is lost. Wrapping the Failure exception preserves both stacktraces. This is important because if `Failure.get` is called this is likely to be...

library

The type-checker fails to find an implicit definition that has an F-bounded type parameter. Here's a minimized example: ```scala object Test { trait A[-T] trait B[-T] class C extends B[C]...

infer
f-bounds
fixed in Scala 3

## reproduction steps Using Scala 2.13.7, omitting `-Ymacro-annotations` when compiling either the macro or its usage/expandage fails silently to expand. ## problem Since paradise was ingested, the compiler could complain...

help wanted
errors and warnings

This would complete the functionality provided by `System.arraycopy` and allow for some nice speed boosts in things like: * `Iterator#copyToArray(dest, destPos, len)` could be optimized in many cases by using...

enhancement
library:collections

From a conversation on scala-user: ---------- [Alan Burlison] One other surprise that I came across that's only hinted at in the 2.11 release notes is the deprecation of the SynchronizedXXX...

help wanted
docs
library:collections
concurrency

Hello team, please consider following code snippet. ```scala Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 9.0.1). Type in expressions for evaluation. Or try :help. scala> :pa //...

should not compile
fixed in Scala 3

pull requests against quasiquote support (which has always been experimental) in scala.reflect will certainly be considered, but it's now been a long time since anyone has touched it. rather than...

quasiquotes

Repro case below ```scala import scala.concurrent._ import scala.concurrent.duration._ import scala.concurrent.ExecutionContext.Implicits.global trait Foo { def a = Inner.a private[this] object Inner { val a = 1 } } trait Bar {...

fixed in Scala 3