diff options
Diffstat (limited to 'test/pending/neg/bug112506A.scala')
-rw-r--r-- | test/pending/neg/bug112506A.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pending/neg/bug112506A.scala b/test/pending/neg/bug112506A.scala new file mode 100644 index 0000000000..a833c6afad --- /dev/null +++ b/test/pending/neg/bug112506A.scala @@ -0,0 +1,19 @@ +package test; +import scala.collection.immutable._; +import scala.collection.mutable._; +trait TypeManagerXXX { + trait TypedNode; + type Node; +} +trait ScalaTyperXXX extends TypeManagerXXX { + private var typed : Node = null; + private val dependMap = new HashMap[String,ListSet[TypedNode]]; + override def lookupEntry(name: String): String = { + val set = dependMap.get(name) match { + case Some(set) => set; + case None => new ListSet[Node] + } + dependMap.update(name, set + typed); + throw new Error; + } +} |