diff options
-rw-r--r-- | test/files/run/t7139.check | 11 | ||||
-rw-r--r-- | test/files/run/t7139/A_1.scala | 8 | ||||
-rw-r--r-- | test/files/run/t7139/Test_2.scala | 9 |
3 files changed, 28 insertions, 0 deletions
diff --git a/test/files/run/t7139.check b/test/files/run/t7139.check new file mode 100644 index 0000000000..9a29a6cef9 --- /dev/null +++ b/test/files/run/t7139.check @@ -0,0 +1,11 @@ + +scala> import test._ +import test._ + +scala> A(0) +res0: test.A = 0 + +scala> A(0) +res1: test.A = 0 + +scala> :quit diff --git a/test/files/run/t7139/A_1.scala b/test/files/run/t7139/A_1.scala new file mode 100644 index 0000000000..eb0eb300da --- /dev/null +++ b/test/files/run/t7139/A_1.scala @@ -0,0 +1,8 @@ +package test { + object A { + def apply(n: A) = n + } +} +package object test { + type A = Int +} diff --git a/test/files/run/t7139/Test_2.scala b/test/files/run/t7139/Test_2.scala new file mode 100644 index 0000000000..32feaa0284 --- /dev/null +++ b/test/files/run/t7139/Test_2.scala @@ -0,0 +1,9 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = + """import test._ + |A(0) + |A(0) + """.stripMargin +} |