summaryrefslogtreecommitdiff
path: root/test/files/jvm
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2006-12-12 11:06:03 +0000
committerIulian Dragos <jaguarul@gmail.com>2006-12-12 11:06:03 +0000
commit9551ed8f5854ddad14a759ae7c5268b2883155b8 (patch)
tree0bb6d77d016f17a69bb19007ff3a99b3b8ca51b2 /test/files/jvm
parent5916f8929a40b3409a9e7cc41257126d278ec92a (diff)
downloadscala-9551ed8f5854ddad14a759ae7c5268b2883155b8.tar.gz
scala-9551ed8f5854ddad14a759ae7c5268b2883155b8.tar.bz2
scala-9551ed8f5854ddad14a759ae7c5268b2883155b8.zip
Fixed bug 853, protected accessors crash with p...
Fixed bug 853, protected accessors crash with path dependent types.
Diffstat (limited to 'test/files/jvm')
-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);
+ }
+ }
}
}