summaryrefslogtreecommitdiff
path: root/test/files/neg/bug4166.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-01-20 18:19:28 +0000
committerPaul Phillips <paulp@improving.org>2011-01-20 18:19:28 +0000
commita8a7481ab79430bef3ca9524538fa5217e0e14d8 (patch)
treec2c3dd346052b91c1186d773b073e4c4af96525f /test/files/neg/bug4166.check
parent919d4e1f3163496d725f7731d2ccd30d47ecee82 (diff)
downloadscala-a8a7481ab79430bef3ca9524538fa5217e0e14d8.tar.gz
scala-a8a7481ab79430bef3ca9524538fa5217e0e14d8.tar.bz2
scala-a8a7481ab79430bef3ca9524538fa5217e0e14d8.zip
Look even harder for attempts to sneak "this" i...
Look even harder for attempts to sneak "this" into superconstructor arguments, and improve positioning. Closes #4166, no review.
Diffstat (limited to 'test/files/neg/bug4166.check')
-rw-r--r--test/files/neg/bug4166.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/bug4166.check b/test/files/neg/bug4166.check
new file mode 100644
index 0000000000..938dad1488
--- /dev/null
+++ b/test/files/neg/bug4166.check
@@ -0,0 +1,4 @@
+bug4166.scala:3: error: super constructor arguments cannot reference unconstructed `this`
+class Demo extends Base(new { Demo.this }) {
+ ^
+one error found