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

## Reproduction steps Scala version: 2.13.12 infinite recursion in `@specialized` methods is nothing new, but, everything I saw so far involved multiple definitions of a method, and a call to...

specialization

## Reproduction steps Scala version: 2.13.12 ```scala trait Ops[@specialized(Int) +T, C] { protected[this] def array :Array[T] def copy :C = fromSpecific(array) def fromSpecific(array :Array[T @uncheckedVariance]) :C } class Spec[@specialized(Int) T](val...

specialization

Either both should compile or neither. ```scala scala> def foo(b: Null): Int = b ^ error: an expression of type Null is ineligible for implicit conversion scala> def foo(b: Null...

typer

This occurs when combining `AnyVal` extension methods and the `Aux` pattern for dependent types. ```scala trait DepFn[A] { type B; def apply(a: A): B } object DepFn { type Aux[A,...

valueclass
typer
fixed in Scala 3

Scala 2.12 (both .0 and .1) compiler crashes when trying to compile my project. Specifically, it throws the following exception: ``` scala.tools.asm.tree.analysis.AnalyzerException: While processing switchwalker/Inspector.inspect .... Caused by: scala.tools.asm.tree.analysis.AnalyzerException: Error...

backend
compiler crash

```scala scala> trait Op { type Cap } defined trait Op scala> def f[O

structural types

## Reproduction steps Scala version: 2.13.12 I made another attempt to bring semantics of my collections exactly in line with the standard library and failed miserably. I hinted at it...

library:collections

`Main.scala`: ```scala package test object Main { def main(args: Array[String]): Unit = { val c: Class[_] = classOf[String] println(c) foo(classOf[String]) } def foo(c: Class[_]): Unit = println(c) } ``` Invocation:...

Here is the smallest case I could generate: ```scala scala> def foo = { class Foo { class Bar { val b = 2 }}; val f = new Foo;...

The following example compiles fine when the Java sources are available to the Scala compiler, but fails when compiling Java and Scala code separate: ```java // Base.java public abstract class...

java interop
separate compilation