summaryrefslogtreecommitdiff
path: root/test/files/jvm/protectedacc.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/protectedacc.scala')
-rw-r--r--test/files/jvm/protectedacc.scala22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/files/jvm/protectedacc.scala b/test/files/jvm/protectedacc.scala
index 0fda40babe..53e43d75a4 100644
--- a/test/files/jvm/protectedacc.scala
+++ b/test/files/jvm/protectedacc.scala
@@ -53,6 +53,20 @@ package p {
protected def tie(x: Node): Unit = { x.s; () }
}
}
+
+ /** bug 853, longer path members */
+ class Global {
+ abstract class Tree;
+ }
+
+ trait HasNSC {
+ trait GlobalExt extends Global;
+ val global : GlobalExt;
+ import global._;
+ protected def doTyped(tree : Tree): Tree = tree;
+ def mkTree : Tree;
+ doTyped(mkTree);
+ }
}
package b {
@@ -126,5 +140,13 @@ package p {
}
}
}
+
+ trait ScalaTyperXXX extends HasNSC {
+ val global : GlobalExt;
+ import global._;
+ trait XXX {
+ def foo(tree : Tree) = doTyped(tree);
+ }
+ }
}
}