summaryrefslogtreecommitdiff
path: root/test/files/neg/t4842b.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t4842b.check')
-rw-r--r--test/files/neg/t4842b.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t4842b.check b/test/files/neg/t4842b.check
new file mode 100644
index 0000000000..c7ccd5e059
--- /dev/null
+++ b/test/files/neg/t4842b.check
@@ -0,0 +1,4 @@
+t4842b.scala:2: error: self constructor arguments cannot reference unconstructed `this`
+ def this() = { this(???)(new { println(TypeArg.this.x) } ); println("next") } // error
+ ^
+one error found