summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-13 12:57:30 +0000
committerPaul Phillips <paulp@improving.org>2009-10-13 12:57:30 +0000
commit04d037f2e1addcd36f0d990c4f1d37106317959e (patch)
tree1a3ce3f610c459cc9a1892e2d6e67352a7573eec /test
parentb45a1eeb33e220ee4e5e96cc429882d30b835f31 (diff)
downloadscala-04d037f2e1addcd36f0d990c4f1d37106317959e.tar.gz
scala-04d037f2e1addcd36f0d990c4f1d37106317959e.tar.bz2
scala-04d037f2e1addcd36f0d990c4f1d37106317959e.zip
Test case for #2127.
Diffstat (limited to 'test')
-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