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

I've found that a constant source of performance issues is the lack of this method in the Map trait: ```scala trait Map[K, V] { def mapEntries[V2](f: (K, V) => V2):...

enhancement

## Reproduction steps ```java // J.java abstract class Base { } class Sub extends Base { } class PolyClass { } class J { static void m(Base te) {} }...

java interop
separate compilation
compiler determinism

```scala Welcome to Scala version 2.11.6-20150309-134842-c11032c6b1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_40). Type in expressions to have them evaluated. Type :help for more information. scala> trait T[A] ; class...

lint

An implicit parameter whose type is a path-dependent type of another parameter that has a default value is not resolved when the default value is used: ~~~ scala trait F[A]...

infer
typer
implicit
fixed in Scala 3

motivational examples from test/files/pos/depmet_implicit_oopsla_session_2.scala and neg/depmet_try_implicit.scala ```scala def runSession[S, D](p: S, dp: D)(implicit s: Session[S]#HasDual[D]) = s.run(p, dp) def runSession[S, D](p: S, dp: D)(implicit s: Session[S]{type Dual=D}) = s.run(p, dp)...

depmet
enhancement

The typer substitutes bounded wildcard types for the quantifiers of existential expected types (in non-pattern mode.) Currently, `dropExistential` is implemented in terms of `SubstWildcardMap`. However, as we see below, this...

existential

See https://groups.google.com/forum/m/#!topic/scala-internals/gnvcWsmAPaY: ```scala class Test { def foo = { // workaround: val dv: QuasiTensor[Int,Int] = DenseVector[Int]() // QuasiTensor does not have overloaded apply val dv = breeze.linalg.DenseVector[Int]() dv.apply(0) //...

specialization

Attempting to compile (note: if the seq is explicitly typed it compiles) ```scala trait Foo { val bar: Any } class Foo1 extends Foo { object bar } class Foo2...

lub
compiler crash
typer
should compile
fixed in Scala 3

Avoid warning if method is marked unused. https://github.com/scala/scala/blob/v2.13.14/src/compiler/scala/tools/nsc/backend/jvm/BCodeSkelBuilder.scala#L99 Avoid warning if parameter type is singleton. https://github.com/scala/scala/blob/v2.13.14/src/compiler/scala/tools/nsc/ast/TreeDSL.scala#L132 ## Problem Probably all unused warnings should be silenced by unused enclosing definition, much...

## Reproduction steps Shows up in Scala 2.13.13 and Scala 3.3.3 (which makes sense as this is the behavior of the standard library) ```scala import scala.collection.immutable._ val pairs = List.tabulate(6)(i...

library:collections