summaryrefslogtreecommitdiff
path: root/test/files/neg/specification-scopes/P_1.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-07-14 13:23:44 -0700
committerSom Snytt <som.snytt@gmail.com>2017-04-09 20:04:17 -0700
commited63344a2dae7731c01737102fbe12b7ad10ba77 (patch)
treea9c6c5858a59bc4e4144bbc5887245f3365db65a /test/files/neg/specification-scopes/P_1.scala
parent1ef37f0bc18be5ed2ca8c33c0ea1912eed5dac3e (diff)
downloadscala-ed63344a2dae7731c01737102fbe12b7ad10ba77.tar.gz
scala-ed63344a2dae7731c01737102fbe12b7ad10ba77.tar.bz2
scala-ed63344a2dae7731c01737102fbe12b7ad10ba77.zip
SI-2458 Make spec example live test
Synchronize the live test with the spec update, which is trivial. Also add a neg test showing that an imported name remains ambiguous even if it resolves to the definition in scope with which it is ambiguous.
Diffstat (limited to 'test/files/neg/specification-scopes/P_1.scala')
-rw-r--r--test/files/neg/specification-scopes/P_1.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/files/neg/specification-scopes/P_1.scala b/test/files/neg/specification-scopes/P_1.scala
index 3b11f1167d..50c306fd67 100644
--- a/test/files/neg/specification-scopes/P_1.scala
+++ b/test/files/neg/specification-scopes/P_1.scala
@@ -1,6 +1,7 @@
-package P {
- object X { val x = 1; val y = 2; }
+package p {
+ object X { val x = 1; val y = 2 }
}
-package Q {
- object X { val x = true; val y = "" }
+
+package q {
+ object X { val x = true; val y = false }
}