From 9551ed8f5854ddad14a759ae7c5268b2883155b8 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Tue, 12 Dec 2006 11:06:03 +0000 Subject: Fixed bug 853, protected accessors crash with p... Fixed bug 853, protected accessors crash with path dependent types. --- test/files/jvm/protectedacc.scala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/files/jvm') 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); + } + } } } -- cgit v1.2.3