diff options
author | Seth Tisue <seth@tisue.net> | 2015-08-06 15:01:21 -0700 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-08-06 15:01:21 -0700 |
commit | 4269f2a12af874159a1017871ccad83f38bed1f3 (patch) | |
tree | ba8d14a2a72c2fed8cac55ebaa9789d3f224919e /test/files/run | |
parent | 0c4d806b89b78b8c25618dbd01e6ad7122facca7 (diff) | |
parent | f5dc96bb550a840ea150985125f52e025ac8ac49 (diff) | |
download | scala-4269f2a12af874159a1017871ccad83f38bed1f3.tar.gz scala-4269f2a12af874159a1017871ccad83f38bed1f3.tar.bz2 scala-4269f2a12af874159a1017871ccad83f38bed1f3.zip |
Merge pull request #4675 from retronym/ticket/9425
SI-9425 Leave Companion.apply if constructor is less accessible
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t9425.scala | 8 |
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) + } +} |