diff options
Diffstat (limited to 'test/files/neg/t4842a.check')
-rw-r--r-- | test/files/neg/t4842a.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t4842a.check b/test/files/neg/t4842a.check new file mode 100644 index 0000000000..39d77bfc48 --- /dev/null +++ b/test/files/neg/t4842a.check @@ -0,0 +1,4 @@ +t4842a.scala:2: error: self constructor arguments cannot reference unconstructed `this` + def this(x: Int) = this(new { println(Foo.this)}) // error + ^ +one error found |