bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
## Reproduction steps Scala version: 2.13.11 ```scala package p { class C { protected def f() = () } class X { this: C => def g() = f() }...
Given ```scala abstract class C[T] { def x: T def m[T] = x } ``` The method `m` has generic signature `()TT;`, which is not correct. Java usage `String t(C...
Usage of Java annotation-with-class-parameter on Scala 3 class causes exception when compiling Scala 2 class. This occurs since Scala 2.13.17. ## Reproduction steps Scala version: 2.13.17 and 2.13.18 `build.sbt:` ```scala...
From https://github.com/scala/scala3/issues/24573#issuecomment-3601905869 ```scala trait F1[-T, +R] { def apply(t: T): R } trait SF[-T] extends F1[T, Unit] { def apply(t: T): Unit } object T { def f: SF[String] =...
commented-out code in the PR: ``` // TODO maybe just drop these commands, as jline subsumes them -- before reenabling, finish scala.tools.nsc.interpreter.jline.HistoryAdaptor //historyCommand, //cmd("h?", "", "search the history", searchHistory), ```
commented-out code in the PR: ``` // TODO maybe just drop these commands, as jline subsumes them //cmd("edit", "|", "edit history", editCommand), ```
## reproduction steps using Scala 3, ```scala scala> (1 to 26).reverse val res0: Range = Range 26 to 1 by -1 scala> ('a' to 'z').reverse val res1: scala.collection.immutable.NumericRange[Char] = empty...
## Reproduction steps Scala 2 version: 2.13.16 Scala 3 version: 3.7.3 1. Clone this minimum reproducability case: https://github.com/jadenPete/scala-cannot-override-bug-reproduction 2. Run `sbt compile` 3. Observe the following compilation error: ``` [error]...
It would seem that `case class`s compiled in Scala 3 with varargs parameters can't be constructed in Scala 2, because the Scala 2 compiler thinks a `Seq` should be passed...
## Reproduction steps This bug is a bit difficult to describe because I'm not sure what exactly causes it. I've done my best to write a minimum reproducability case, though....