summaryrefslogtreecommitdiff
path: root/test/neg/constrparams.check
blob: 6aef035af0642622d80d27b2b2cb024955173744 (plain) (blame)
1
2
3
4
5
6
7
8
9
constrparams.scala:4: type mismatch;
 found   : scala.AllRef
 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