aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0504.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-03-16 18:38:03 +0100
committerTobias Schlatter <tobias@meisch.ch>2014-03-21 11:24:03 +0100
commit4b57b3d877ca7b66b4cb2e588493d2933ae041bf (patch)
treecd68fb941a5a9eb2122f828f2670848ef3d750fe /tests/pos/t0504.scala
parentee1251f37f844bdb4f4ea69177e8183ad74e7b3d (diff)
downloaddotty-4b57b3d877ca7b66b4cb2e588493d2933ae041bf.tar.gz
dotty-4b57b3d877ca7b66b4cb2e588493d2933ae041bf.tar.bz2
dotty-4b57b3d877ca7b66b4cb2e588493d2933ae041bf.zip
Fix of t0504: _root_ not found
_root_ is now entered into an enclosing context.
Diffstat (limited to 'tests/pos/t0504.scala')
-rw-r--r--tests/pos/t0504.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/t0504.scala b/tests/pos/t0504.scala
new file mode 100644
index 000000000..b2b0b85e4
--- /dev/null
+++ b/tests/pos/t0504.scala
@@ -0,0 +1,9 @@
+package b {
+ class B
+}
+
+package a.b {
+ class A {
+ val x = new _root_.b.B
+ }
+}