Permalink
Browse files

Test case closes SI-5655.

Still some issues with the repl namespace, which should
be managed in a first class way, not defensively/reactively.
  • Loading branch information...
paulp committed May 3, 2012
1 parent 0cb886a commit 03e3a40951ec7d1612cb668973f4d2e5e01872e9
Showing with 40 additions and 0 deletions.
  1. +30 −0 test/files/run/t5655.check
  2. +10 −0 test/files/run/t5655.scala
View
@@ -0,0 +1,30 @@
Type in expressions to have them evaluated.
Type :help for more information.
scala>
scala> object x { def x={} }
defined module x
scala> import x._
import x._
scala> x
<console>:12: error: reference to x is ambiguous;
it is imported twice in the same scope by
import x._
and import x
x
^
scala> x
<console>:12: error: reference to x is ambiguous;
it is imported twice in the same scope by
import x._
and import x
x
^
scala>
scala>
View
@@ -0,0 +1,10 @@
import scala.tools.partest.ReplTest
object Test extends ReplTest {
def code = """
object x { def x={} }
import x._
x
x
"""
}

0 comments on commit 03e3a40

Please sign in to comment.