summaryrefslogtreecommitdiff
path: root/test/files/neg/constrparams.check
blob: 6e7ec7671ecd7e71cbd90fe07771718c6bac4f54 (plain) (blame)
1
2
3
4
5
6
7
8
9
constrparams.scala:4: type mismatch;
 found   : scala.AllRef(null)
 required: x.t
  private val z: x.t = null; //error
                       ^
constrparams.scala:1: type x.type escapes its defining scope as part of java.lang.Object with scala.ScalaObject { type t,  val y$: x.type,  def y: x.type,  val z$: x.t,  def z: x.t }
abstract class C(x: C) {
               ^
two errors found