-
```scala
class View[C[A]] {}
object Test {
null match {
case v: View[_] =>
}
}
```
If you compile this with -unchecked you get:
```scala
/home/odersky/scala/test/files/new/hkpatterns.…
-
```scala
~$$ scala-2.8.0
Welcome to Scala version 2.8.0.r18583-b20090827020153 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_13).
Type in expressions to have them evaluated.
Type :help for more info…
-
= problem =
Type Constructor inference doesn't behave consistently across method calls and constructor invocations.
```scala
trait M[V[_]]
class Cls[V[_]](c: M[V])
object Cls{
def apply[V[_]](c:…
-
Define the following method:
```scala
scala> def idMap[C[_],T](m: { def map[U](f: T => U): C[U] }): C[T] =
| m.map(t => t)
idMap: [C[_],T](AnyRef{def map[U]((T) => U): C[U]})C[T]
```
Try to …
-
The following code crashes the compiler:
```scala
def m(v: V[_] forSome { type V[_] }) = 1
```
What versions of the following are you using?
Scala: 2.8.1.final
Java: Java HotSpot(TM) 64-Bit Server …
-
While trying to find a minimal test case for #2216, I ran into this error after passing a null as an argument to an implicit parameter list.
It's not a blocking problem.
code and console output atta…
-
Scalaz from trunk (svn revision 812) will not compile with Scala from trunk (revision 18388), giving the below output. The assertion dates from April 08, so I'd guess it's not the addition of that th…
-
Encountered when investigating David macIver's http://thread.gmane.org/gmane.comp.lang.scala/9215
Attempted to compile the attached code with 2.6.1-final
```scala
sequence2.scala:125: error: type arg…
-
The following type level encoding of multiplication used to work on 2.7. With 2.8 beta 1 the compiler crashes with a `Exception in thread "main" java.lang.Error: no-symbol does not have owner`:
```sc…
-
The following program throws an Assertion Error on compilation (both with 2.7.0-final and with 2.7.1.RC1).
```scala
object Crash {
class Zero
class Succ[T]
type mul[m[n[s[_], z], z],…