From 47050ee4934f5bf78339c5d81583ab445a4318dd Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Thu, 27 Oct 2016 21:13:56 +0200 Subject: SI-7139 test case, fixed by one of the recent commits --- test/files/run/t7139.check | 11 +++++++++++ test/files/run/t7139/A_1.scala | 8 ++++++++ test/files/run/t7139/Test_2.scala | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 test/files/run/t7139.check create mode 100644 test/files/run/t7139/A_1.scala create mode 100644 test/files/run/t7139/Test_2.scala 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 +} -- cgit v1.2.3