-
```scala
scala> class X[X](val a: Any)
defined class X
scala> implicit class X[X](val a: Any)
:10: error: X does not take type parameters
implicit class X[X](val a: Any)
…
-
```scala
class Foo(val v: String) extends AnyVal { private def len = v.length ; def f = len }
```
```
no-symbol does not have an owner
at scala.reflect.internal.SymbolTable.abort(SymbolTable.scala:…
-
The program below causes a crash, apparently due to the type alias in the package object. The commented out version compiles without a crash. See the attachment for the stack trace.
Code similar to…
-
**Build**: `Scala version 2.8.0.r22424-b20100630020140 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20).`
**Note**: xhtml1-strict.scala was generated from the schema of XHTML using my private build…
-
Compiling this code
```scala
class NodeOps(val n: Any) extends AnyVal {
case class Scope
}
```
leads to
```scala
C:\Users\szeiger\Desktop\stest>c:\StandaloneApps\scala-2.10.0-20120604-062…
-
The following code causes the compiler to crash with AssertionError.
```
trait OuterClass[V
def method = ()
}
}
trait SubOuterClass[T }
}
```
```
>scalac Crash.scala
error: java…
-
The following crashes scalac as shown below. The inducement is a path dependent type which arrived by way of a var, followed by a method which takes a Manifest (or an OptManifest.) Not sure what is s…
-
While poking around #3648, I found this.
```scala
~/code/scratch: scala -version
Scala code runner version 2.8.0.RC7 -- Copyright 2002-2010, LAMP/EPFL
~/code/scratch: scala -e 'object T { class C(s…
-
I'm not necessarily suggesting this should do anything useful, just that it shouldn't crash.
```scala
scala> class A { var i = 0 ; trait A1 extends A { i += 1 } }
defined class A
scala> new A with A#…
-
Scala version 2.8.1.final
```scala
scala> class Foo[T](v: T) {}
scala> new Foo[Boolean](Boolean.FALSE)
:7: error: value FALSE is not a member of object Boolean
new Foo[Boolean](Boolean.FALSE)
…