diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-29 18:51:33 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-29 19:12:18 +0100 |
commit | 32f31b8924d16074679bfa0857019d3ba078c4a2 (patch) | |
tree | 40511677d6fe36cc505bfa46e1a09e8732097cfd /tests/neg/typedIdents/PQ.scala | |
parent | 51ab200f97f11ac74270f6925028ba4d58284e7b (diff) | |
download | dotty-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/neg/typedIdents/PQ.scala')
-rw-r--r-- | tests/neg/typedIdents/PQ.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/neg/typedIdents/PQ.scala b/tests/neg/typedIdents/PQ.scala new file mode 100644 index 000000000..8a5afede0 --- /dev/null +++ b/tests/neg/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 = "" } +} |