aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7007.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7007.check')
-rw-r--r--tests/untried/neg/t7007.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t7007.check b/tests/untried/neg/t7007.check
new file mode 100644
index 000000000..e22ecb9e4
--- /dev/null
+++ b/tests/untried/neg/t7007.check
@@ -0,0 +1,7 @@
+t7007.scala:5: error: Implementation restriction: <$anon: A => B> requires premature access to class Crash.
+ def this(a: Seq[A]) = this(a.collect{ case b: B => b}, a.collect{ case b: B => b})
+ ^
+t7007.scala:5: error: Implementation restriction: <$anon: A => B> requires premature access to class Crash.
+ def this(a: Seq[A]) = this(a.collect{ case b: B => b}, a.collect{ case b: B => b})
+ ^
+two errors found