diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2016-10-27 21:13:56 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2016-10-27 21:13:56 +0200 |
commit | 47050ee4934f5bf78339c5d81583ab445a4318dd (patch) | |
tree | 8c68c4d7649493e66869fc36e296bda2435b881a /test | |
parent | 26c57466eb321a053af0c0feaebf24e585a6bea4 (diff) | |
download | scala-47050ee4934f5bf78339c5d81583ab445a4318dd.tar.gz scala-47050ee4934f5bf78339c5d81583ab445a4318dd.tar.bz2 scala-47050ee4934f5bf78339c5d81583ab445a4318dd.zip |
SI-7139 test case, fixed by one of the recent commits
Diffstat (limited to 'test')
-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 +} |