bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
When having an existentially parameterized value `val foo: Foo[_]`, I would expect the type argument, although unknown, be stable among all usages of `foo`. This is clearly not the case:...
First pass at a minimization from 78974e6241b8f4498c7ae2669fc406947282a660 in https://github.com/sirthias/parboiled2/tree/wip/scala-2.11-possible-regression ```scala object Test { import ParboiledLite._ implicitly[RunResult[String => Unit]] } object ParboiledLite { trait HList final case class ::[+H, +T
```scala // J.java package foo; public class J { protected J(M m) { } } // S.scala package bar class SC1 extends foo.J("") class SC2 extends foo.J[String]("") ``` ``` %...
The following compiled with Scala 2.8.1: ```scala @annotation.tailrec def lazyFilter[E](s: Stream[E], p: E => Boolean): Stream[E] = s match { case h #:: t => if (p(h)) h #:: lazyFilter(t,...
This could probably be improved ```scala class C { final def f = { val tup = (1, 2) tup.copy(_1 = 3) } } ``` ``` $> scalac Test.scala -opt:l:inline...
Variable arguments will be converted to WrappedArray implicitly with proper component type, but under below case, for ArrayWrapper.updateOne method, the argument will be converted to WrappedArray$ofRef (should be WrappedArray$ofDouble) discarding...
As of r24390 signatures appear to be in good shape with the exception of this, which I can only document for now. Actually this is not about signatures per se,...
If the REPL or fsc is used with -Yinline then we end up in a state where two symbols represent the same thing and the second version isn't initialized where...
The following code causes the compiler to crash: ```scala object Foo { implicit def callByNameToNoArgumentsFunction[A](a: => A): () => A = () => a def foo(methods: (() => Int)*)(default: Int...
The `mutable.BufferLike` has this nice remove method which returns the removed item as well as mutating the mutable collection: def remove(index: Int): A But, it also has this remove method...