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: Tested with 2.12.15 and 2.13.7, error does not occur with 3.0.2 ```scala package example object Hello extends App { // [error] scala-bug/src/main/scala/example/Hello.scala:4:18: type mismatch; //...

package objects
fixed in Scala 3

## reproduction steps Include a nightly build of dotty as a runtime dependency using ```"org.scala-lang" %% "scala3-compiler" % "3.1.3-RC1-bin-20220221-3ca087c-NIGHTLY".``` In a program run with Scala 2.13.8. ## problem I get...

tastyreader

## Reproduction steps Scala version: 2.13.8 ```scala Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 17.0.2). Type in expressions for evaluation. Or try :help. scala> object sun { val...

help wanted
repl

## Reproduction steps ```scala Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 17.0.2). Type in expressions for evaluation. Or try :help. scala> 42 val res0: Int = 42 scala>...

repl
fixed in Scala 3

## Reproduction steps Scala Version: 2.13.8 I cant reproduce it by raw scala, it's only reproduce in akka function. I'm not sure if the bug is also related to `akka`....

overloading
sam
fixed in Scala 3

## Reproduction steps ```scala Welcome to Scala 2.13.8 (OpenJDK 64-Bit Server VM, Java 17.0.2). Type in expressions for evaluation. Or try :help. scala> class C(i: Int) class C scala> new...

## Reproduction steps Scala version: 2.13.8 ```scala scala 2.13.8> class C[A] { val a: A = null.asInstanceOf[A] ; def f(x: A) = x match { case _: a.type => 42...

patmat

## Reproduction steps Scala version: 2.13.8 ```scala trait ByNameImplicit[A, B] object ByNameImplicit { implicit def invert[A, B](implicit ab: => ByNameImplicit[A, B]): ByNameImplicit[B, A] = new ByNameImplicit[B, A] {} } abstract...

byname
implicit
fixed in Scala 3

Something is up with these; I swear some of them used to warn. Really, I can't spot "Nil == 0" ? ``` scala> val x = scala.collection.mutable.Map[String, List[String]]() withDefaultValue Nil...

lint
enhancement

This is with Scala 2.8.0.RC3 Steps to reproduce: in p/Base.java ```java package p; public class Base { protected void test() { } } ``` in test.scala ```scala trait Ext {...

java interop
access
fixed in Scala 3