diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-22 12:44:25 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-22 12:50:43 -0700 |
commit | fb788e03f6940ab1a3551d6a1f295821c118dc70 (patch) | |
tree | dc32339567ffc8cdc91836eb71b5d3ee1ad8583c | |
parent | 083970b21ff2fa272ff2cfb26e571682d32f5e84 (diff) | |
download | scala-fb788e03f6940ab1a3551d6a1f295821c118dc70.tar.gz scala-fb788e03f6940ab1a3551d6a1f295821c118dc70.tar.bz2 scala-fb788e03f6940ab1a3551d6a1f295821c118dc70.zip |
Test case closes SI-4987.
-rw-r--r-- | test/files/neg/t4987.check | 4 | ||||
-rw-r--r-- | test/files/neg/t4987.scala | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t4987.check b/test/files/neg/t4987.check new file mode 100644 index 0000000000..8d7344d27b --- /dev/null +++ b/test/files/neg/t4987.check @@ -0,0 +1,4 @@ +t4987.scala:2: error: constructor Foo2 in class Foo2 cannot be accessed in object Bar2 +object Bar2 { new Foo2(0, 0) } + ^ +one error found diff --git a/test/files/neg/t4987.scala b/test/files/neg/t4987.scala new file mode 100644 index 0000000000..e55acd4127 --- /dev/null +++ b/test/files/neg/t4987.scala @@ -0,0 +1,2 @@ +class Foo2 private (a: Int, b: Int) +object Bar2 { new Foo2(0, 0) } |