bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
```scala //> using options -Xasync import OptionAwait._ object Test { def main(args: Array[String]): Unit = { assert(Some(22) == iSw(11)) } private def iSw(i: Int) = optionally { i match {...
## Reproduction steps Consider the following jmh benchmark (on scala 2.13.8 and hotspot openjdk-19, but I believe this applies to all versions except that graal is possibly better than C2...
This fails to compile on 2.13: ```scala // class Foo[FT] { class Foo { type FT class I def m(b: FT, o: Option[I]): Int = 0 } object Test {...
## Questions are not bug reports What if it's a documentation bug? I realize that's another question. ## Reproduction steps Scala version: 2.13.13 https://github.com/scalameta/munit/pull/461 to exercise `-Wconf:cat=deprecation:s -Xlint` and upgrading...
## Reproduction steps Scala version: 2.13.13 ```scala object Bar extends Cloneable { def f: Unit = {} } ``` ```sh $ scalac Test.scala -Xlint -Wconf:any:error Test.scala:1: warning: object Bar should...
Scala version: 2.13.13 ```scala private[zio] final case class FiberRefStack[@specialized(SpecializeInt) A] private[FiberRefs] ( private val headFiberId: FiberId.Runtime, // Doesn't compile with the `private val` but does compile without it headValue: A,...
```scala class Outer { class Inner() {} def getInner = new Inner() def useInner(inner: Inner): Unit = { } } class Container { var outer: Outer = _ outer =...
## reproduction steps In [ScalaFX](https://github.com/scalafx/scalafx) build script change Scala version from 2.13.1 to 2.13.3 using Scala 2.13.3, ## problem ScalaFX code compiles fine with Scala 2.13.1 (and 2.12 and 2.11)....
In 2.12 and 2.13-M3ish: ``` scala> class X { def foo = (1,2,3); def bar { val (x,y,z) = foo } } defined class X scala> :javap X ... public...
Consider this code, defining a simple class with a method named `**`: ```scala class Foo() { def **(s: String) = "Foo" } ``` Now we add a new classes and...