aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/typedIdents/PQ.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-10-29 18:51:33 +0100
committerMartin Odersky <odersky@gmail.com>2015-10-29 19:12:18 +0100
commit32f31b8924d16074679bfa0857019d3ba078c4a2 (patch)
tree40511677d6fe36cc505bfa46e1a09e8732097cfd /tests/pos/typedIdents/PQ.scala
parent51ab200f97f11ac74270f6925028ba4d58284e7b (diff)
downloaddotty-32f31b8924d16074679bfa0857019d3ba078c4a2.tar.gz
dotty-32f31b8924d16074679bfa0857019d3ba078c4a2.tar.bz2
dotty-32f31b8924d16074679bfa0857019d3ba078c4a2.zip
Fix #884 - misdiagnosed ambiguous definition.
Universal equality strikes again. Caused a bug in isDefinedInCurrentUnit.
Diffstat (limited to 'tests/pos/typedIdents/PQ.scala')
-rw-r--r--tests/pos/typedIdents/PQ.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/typedIdents/PQ.scala b/tests/pos/typedIdents/PQ.scala
new file mode 100644
index 000000000..8a5afede0
--- /dev/null
+++ b/tests/pos/typedIdents/PQ.scala
@@ -0,0 +1,6 @@
+package P {
+ object X { val x = 1; val y = 2 }
+}
+package Q {
+ object X { val x = true; val y = "" }
+}