From 04d037f2e1addcd36f0d990c4f1d37106317959e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 13 Oct 2009 12:57:30 +0000 Subject: Test case for #2127. --- test/files/pos/bug2127.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/pos/bug2127.scala diff --git a/test/files/pos/bug2127.scala b/test/files/pos/bug2127.scala new file mode 100644 index 0000000000..d6244c14a2 --- /dev/null +++ b/test/files/pos/bug2127.scala @@ -0,0 +1,5 @@ +class Foo private (val value : Int) + +abstract class Bar(val ctor : (Int) => Foo) + +object Foo extends Bar(new Foo(_)) //<--- ILLEGAL ACCESS \ No newline at end of file -- cgit v1.2.3