aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i1145.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/i1145.scala')
-rw-r--r--tests/neg/i1145.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/neg/i1145.scala b/tests/neg/i1145.scala
new file mode 100644
index 000000000..b33300b91
--- /dev/null
+++ b/tests/neg/i1145.scala
@@ -0,0 +1,11 @@
+object A {
+ def x = 3
+
+ def y = {
+ import B._
+ x // error: ambiguous
+ }
+}
+object B {
+ def x = 3
+}