summaryrefslogblamecommitdiff
path: root/test/neg/constrparams.check
blob: a9b7c39573a39a234f01588c4326de0fbf8a60fe (plain) (tree)
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 scala.Object { 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