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

Consider the following code: ```scala object wrap1 { trait A { def n = 3 } } object wrap2 { trait A { def n = 7 } } ```...

typer

TL;DR in theory IntelliJ's sbt compiler should not be working in Scala 2 because `generatedNonLocalClass` is not called, but in reality it does work, which might mean there is a...

## Reproduction steps Scala version: 3.7.0 (but the bug is in the standard library) ```scala scala> import scala.collection.immutable.ArraySeq scala> ArraySeq(0.0f) == ArraySeq(-0.0f) val res0: Boolean = false scala> ArraySeq(0.0f).map(identity) ==...

With this code: ```scala package com.example import shapeless.record._ object Foo { private type X = Record.`'a -> Int`.T private type Y = Record.`'b -> X`.T val foo: Y = Record(b...

lint

This happens when vararg type has type parameters. Both Array and mutable.Seq are invariant. However using Array as an argument in vararg function fails, while mutable.Seq works. ```scala object Main...

varargs
fixed in Scala 3

``` % tail test/files/run/som/*.{java,scala} ==> test/files/run/som/Java_1.java test/files/run/som/Macros_1.scala ru} val formatterSym = c.universe.symbolOf[bakery.SomeOtherJava] ru.internal.createImporter(c.universe).importSymbol(formatterSym) q"()" } } ==> test/files/run/som/Test_2.scala sandbox/Java_1.java sandbox/test.scala

## Reproduction steps 2.13.16 With scalacOptions including ``` "-Wtostring-interpolated", ``` and optionally (to make it an error) ``` "-Wconf:cat=w-flag-tostring-interpolated:e", ``` compile this code: ```scala val shouldCaps = true val greeting...

## Reproduction steps Scala 2 version: 2.13.16 Scala 3 version: 3.6.3 Please let me know if [scala/scala3](https://github.com/scala/scala3) is a better place to post this. 1. Compile the following with Scala...

## Reproduction steps Scala version: 2.13.16 ```scala //> using scala 2.13.16 import scala.language.implicitConversions trait LowPriorityConversions { implicit def convertIterable1[A, I[T] (K2, V2)): Map[K2, V2]` and `map[B](f: ((K, V)) => B):...

infer
fixed in Scala 3

## Questions are not bug reports Sorry in advance to Seth if this turns out to be a question. He can come after me. ## Reproduction steps Scala version: 2.13.16...