summaryrefslogtreecommitdiff
path: root/test/files/run/t9425.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2015-08-24 11:36:36 +0200
committerLukas Rytz <lukas.rytz@typesafe.com>2015-08-24 11:36:36 +0200
commit3a543d64158e85b65f8998460c832362bdddec4f (patch)
tree665fc16d4932a6d8625fe28ae87c100bb1ee96c1 /test/files/run/t9425.scala
parentcd77e23b76af8538ed7e2c5c90e7845582dff460 (diff)
parentded2d4f2e613aad6670b3e5dccbab0feb711b18b (diff)
downloadscala-3a543d64158e85b65f8998460c832362bdddec4f.tar.gz
scala-3a543d64158e85b65f8998460c832362bdddec4f.tar.bz2
scala-3a543d64158e85b65f8998460c832362bdddec4f.zip
Merge pull request #4700 from SethTisue/merge-2.11.x-aug-20
Merge 2.11.x aug 20 [ci: last-only]
Diffstat (limited to 'test/files/run/t9425.scala')
-rw-r--r--test/files/run/t9425.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t9425.scala b/test/files/run/t9425.scala
new file mode 100644
index 0000000000..f251cc8579
--- /dev/null
+++ b/test/files/run/t9425.scala
@@ -0,0 +1,8 @@
+class C { case class Foo private (x: Int); Foo.apply(0) }
+
+object Test {
+ def test(c: C) = {import c.Foo; Foo.apply(0)}
+ def main(args: Array[String]): Unit = {
+ test(new C)
+ }
+}