summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/pos/bug2127.scala5
1 files changed, 5 insertions, 0 deletions
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