bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
``` scala> class Foo[S] { type X = List[S]; val x: X = List() } defined class Foo scala> new Foo[Int].x : List[Int] res0: List[Int] = List() scala> def foo[S]...
``` [nix-shell:/code/scala/sandbox]$ cat Test.scala class Q {{ object F { def apply(): Int = 1 } trait L { def x = F() } class X() extends L { def...
In the following example, the last case is inferred to be of type Any (and therefore does not compile), whereas for both checks T is a common supertype: ```scala object...
Since Scala 2.11.0, case classes can have an arbitrary number of fields (well, up to JVM limits which I believe is ~256). However, these newly unleached gargantuan classes can easily...
``` scala package p private[p] trait T { /** @template */ type A } object O extends T ``` ``` $ scaladoc -version Scaladoc version 2.12.2 -- Copyright 2002-2017, LAMP/EPFL...
On the latest nightly build I see: ``` [Generate bytecode from ASTs using the ASM library in -856010314ms] ``` cc @jvican
```scala class Cake { trait Foo[T] object Foo { // if FooString is replaced with fooString, everything works // implicit val fooString = new Foo[String] {} implicit object FooString extends...
Can you do something to avoid x$3 in error message? I think that `ls` instead of `x$3` will be much better ```scala type OI = Option[Int] def boo(z: OI, ls:...
Compile the following: ```scala // testinherit.scala abstract class A { type Foo def bar(foo: Foo): Unit } class BFoo { } class CFoo extends BFoo { } class B extends...
Created and compiled class: ```scala abstract class B { protected def println(): Unit } ``` Javap shows for me: ```java public abstract class B implements scala.ScalaObject { public abstract void...