bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
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] =>...
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...
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...
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]...
## 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...
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...
scala.collection.mutable.SynchronisedXXX classes deprecated, implicits missing for Java equivalents
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...
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 //...
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...
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 {...