summaryrefslogblamecommitdiff
path: root/test/files/neg/t4842.check
blob: b53bbdbd15d0005b960d428088d66e0a91594cc1 (plain) (tree)
1
2
3
4
5
6
7






                                                                                        
t4842.scala:2: error: self constructor arguments cannot reference unconstructed `this`
  def this(x: Int) = this(new { println(Foo.this)}) // error
                                        ^
t4842.scala:6: error: self constructor arguments cannot reference unconstructed `this`
  def this() = { this(???)(new { println(TypeArg.this.x) } ); println("next") } // error
                                         ^
two errors found