summaryrefslogtreecommitdiff
path: root/test/files/neg/t7007.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-15 07:21:26 -0700
committerJason Zaugg <jzaugg@gmail.com>2013-09-15 07:21:26 -0700
commitc2f7ce5cbbc3ccd086764e49c47e139786e0ab24 (patch)
tree5779d4b901132c164a94e75f52916fb2cf3bdc92 /test/files/neg/t7007.check
parentf3d9bdc283a82b816218aefc3df7d287e0cdd271 (diff)
parent27d73ee7a92d8dd10d4d0598a29d3a3657053995 (diff)
downloadscala-c2f7ce5cbbc3ccd086764e49c47e139786e0ab24.tar.gz
scala-c2f7ce5cbbc3ccd086764e49c47e139786e0ab24.tar.bz2
scala-c2f7ce5cbbc3ccd086764e49c47e139786e0ab24.zip
Merge pull request #2884 from retronym/ticket/3832
SI-1909 SI-3832 SI-7007 SI-7223 Improved handling of larval objects
Diffstat (limited to 'test/files/neg/t7007.check')
-rw-r--r--test/files/neg/t7007.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t7007.check b/test/files/neg/t7007.check
new file mode 100644
index 0000000000..e22ecb9e4e
--- /dev/null
+++ b/test/files/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