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

Not sure this is worth reporting, but it caused some headaches in Scala.js: https://github.com/scala-js/scala-js/issues/3058 (with a wrong fix in https://github.com/scala-js/scala-js/pull/3059) then https://github.com/scala-js/scala-js/issues/3267 (with the "proper" fix in https://github.com/scala-js/scala-js/pull/3272). We'll need...

erasure

The following hangs the compiler: ```scala trait Data { self => type Type >: self.type } trait Eq[Type

compiler crash
fixed in Scala 3

Functions intersectWith(), unionWith(), diffWith(), or similar names, should be added to generic Traversables or at least to Maps. Note that IntMap and LongMap already have intersectionWith() and unionWith(). The name...

enhancement
library:collections

The following two snippets must live in different files. First a sealed `Base` hierarchy. ```scala sealed abstract class Base sealed trait A extends Base object A { case object Root...

This bug only occurs when separately compiling the two files: File 1: ```scala trait TypeHints { def + (hints: TypeHints): TypeHints = CompositeTypeHints() private[TypeHints] case class CompositeTypeHints() extends TypeHints }...

minimized

When I compile (with sbt 0.11.2) the code in the following GitHub repo: https://github.com/paulbutcher/scala-macro-bug I **sometimes** get: ``` [error] /Users/paul/scala/foo/src/main/scala/Base.scala:2: overriding value factory in trait Mock of type c.Expr[MockFactoryBase]; [error]...

macros

The order of implicit parameters matters during use site-inference. The method definitions below successfully compile. Actually using y and z yields a compile-time error with message: "diverging implicit expansion for...

infer

## Reproduction steps Scala version: 2.13.15; 2.13.16 ```scala package com.acme.someproject.somemicroservice.projections.impl import scala.concurrent.Future trait Handler[Envelope] { def process(envelope: Envelope): Future[Unit] } class CopyScenarioEventsProjectionHandler( managerServiceIn: ServiceA, assetServiceIn: ServiceB, ) { } trait...

should not compile
compiler crash
fixed in Scala 3

## reproduction steps Minimized example: ```scala package example import scala.util.Try class X(a: Any) final class XImpl extends X({ def res = Try(helper()) def helper() = () res }) ``` ##...

should compile
fixed in Scala 3

The current semantics of `.withDefault` and `.withDefaultValue` are tricky: there's no way to know whether `.apply(key)` will return a value or Nothing. `.get(key)` will return `Some(value)` if explicitly contained in...

enhancement
library:collections