aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-03-09 19:40:12 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-03-09 19:40:12 +0100
commit305a9f06bd2b2ac6070beb184d61ff6db4cb9155 (patch)
tree09820e3e17922fea5e1a8c0ff0faf3a6c5a09b9a /tests
parentff8731041a522b73fde6bddd2d7077d19d35b6b0 (diff)
parent8c99865cecf41b844e0710620337d26838e647ef (diff)
downloaddotty-305a9f06bd2b2ac6070beb184d61ff6db4cb9155.tar.gz
dotty-305a9f06bd2b2ac6070beb184d61ff6db4cb9155.tar.bz2
dotty-305a9f06bd2b2ac6070beb184d61ff6db4cb9155.zip
Merge pull request #1163 from dotty-staging/fix-#1145
Fix bug where ambiguous references were not reported
Diffstat (limited to 'tests')
-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
+}