Scala Buggabot

Results 171 issues of Scala Buggabot

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

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

Consider the following snippet. Casting to existential causing the error "can't existentially abstract over parameterized type F". `test1` fails for both scala 2.10 and 2.11 `test2` works for 2.10 but...

typer
tcpoly
existential

The following code fails to compile. The failure happens when a method has a default parameter, has a return type depending on one of its parameters; when the method itself...

named/default args
should compile
fixed in Scala 3

Run `scaladoc -groups` for the following class: ```scala /** * See [[boppy]]. * * @groupname stuff Stuff */ trait Bippy { /** * Boppy. * @group stuff */ def boppy:...

scaladoc tool

Seems you can't define a value class's value as implicit: ```scala class IntW(implicit val n: Int) extends AnyVal ``` --- ```scala Foo.scala:1: error: value class may not be a member...

valueclass
fixed in Scala 3