aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6666b.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6666b.check')
-rw-r--r--tests/untried/neg/t6666b.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t6666b.check b/tests/untried/neg/t6666b.check
new file mode 100644
index 000000000..c3ffc7cfa
--- /dev/null
+++ b/tests/untried/neg/t6666b.check
@@ -0,0 +1,7 @@
+t6666b.scala:11: error: Implementation restriction: access of method x$1 in class C5 from object Nested$3, would require illegal premature access to the unconstructed `this` of class C5
+ object Nested { def xx = x}
+ ^
+t6666b.scala:22: error: Implementation restriction: access of method x$2 in class C15 from object Nested$4, would require illegal premature access to the unconstructed `this` of class C15
+ object Nested { def xx = x}
+ ^
+two errors found