From c58647f5f25e9d99cb1890a32af4621c4d4645fa Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 6 Jan 2013 12:25:03 -0800 Subject: SI-6928, VerifyError with self reference to super. A bug in typers mishandled varargs. We should get more aggressive about eliminating all the ad hoc parameter/argument handling code spread everywhere. For varargs especially: any code which tries to make an adjustment based on a repeated parameter is more likely to be wrong than right. In aggregate these reinventions are a huge source of bugs. --- test/files/neg/t6928.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/files/neg/t6928.scala (limited to 'test/files/neg/t6928.scala') diff --git a/test/files/neg/t6928.scala b/test/files/neg/t6928.scala new file mode 100644 index 0000000000..84bdcde45a --- /dev/null +++ b/test/files/neg/t6928.scala @@ -0,0 +1,10 @@ +abstract class A( val someAs: A* ) +object B extends A(B) +object C extends A(null, null, C) + +object Test { + def main(args: Array[String]): Unit = { + println(B.someAs) + println(C.someAs) + } +} -- cgit v1.2.3