summaryrefslogtreecommitdiff
path: root/test/files/neg/t6666.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-01-29 13:02:01 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-02-02 13:19:07 +0100
commit275b341545a3c4e633bd735cf45ccc1956a4233e (patch)
tree3f68aa101909b010ec25d70ac7894cde7b746311 /test/files/neg/t6666.scala
parent66fa1f22ac058e87350304388eca17aedc1e4b64 (diff)
downloadscala-275b341545a3c4e633bd735cf45ccc1956a4233e.tar.gz
scala-275b341545a3c4e633bd735cf45ccc1956a4233e.tar.bz2
scala-275b341545a3c4e633bd735cf45ccc1956a4233e.zip
SI-6666 Catch VerifyErrors in the making in early defs.
As we did for self/super calls, add a backstop into explicitouter and lambdalift to check when we try to get an outer pointer to an under-construction instance.
Diffstat (limited to 'test/files/neg/t6666.scala')
-rw-r--r--test/files/neg/t6666.scala10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/files/neg/t6666.scala b/test/files/neg/t6666.scala
index 19073884bd..1919ea3ca9 100644
--- a/test/files/neg/t6666.scala
+++ b/test/files/neg/t6666.scala
@@ -110,4 +110,12 @@ class C14(a: Any) {
class COuter extends C({
def foo = 0
class CInner extends C({foo})
-}) \ No newline at end of file
+})
+
+
+class CEarly(a: Any) extends {
+ val early = {def x = "".toString
+ object Nested { def xx = x}
+ Nested.xx
+ }
+} with AnyRef \ No newline at end of file