diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-24 17:11:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-24 17:11:55 +0000 |
commit | b9785280a7138a2bb52060faf94807aa0d07dec1 (patch) | |
tree | 870cc1930ac3d50cd07078260f58984224dd39a5 /test/files/run/bug657.scala | |
parent | 84fcf633d9ca507124806d64729cb8463bcebb69 (diff) | |
download | scala-b9785280a7138a2bb52060faf94807aa0d07dec1.tar.gz scala-b9785280a7138a2bb52060faf94807aa0d07dec1.tar.bz2 scala-b9785280a7138a2bb52060faf94807aa0d07dec1.zip |
Renamed tests named bugXXX to tXXX, no review.
Diffstat (limited to 'test/files/run/bug657.scala')
-rw-r--r-- | test/files/run/bug657.scala | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/files/run/bug657.scala b/test/files/run/bug657.scala deleted file mode 100644 index a9726092e7..0000000000 --- a/test/files/run/bug657.scala +++ /dev/null @@ -1,51 +0,0 @@ -abstract class BaseList { - type Node <: NodeImpl; - implicit def convertNode(ni : NodeImpl) = ni.asInstanceOf[Node]; - abstract class NodeImpl; -} -abstract class LinkedList extends BaseList { - type Node <: NodeImpl; - trait NodeImpl extends super.NodeImpl; -} -trait OffsetList extends LinkedList { - type Node <: NodeImpl; - trait NodeImpl extends super.NodeImpl; -} - -trait PriorityTree extends BaseList { - type Node <: NodeImpl; - trait NodeImpl extends super.NodeImpl { - def chop : Node = this; - } -} - -trait PrecedenceParser extends LinkedList with PriorityTree { - type Node <: NodeImpl; - trait NodeImpl extends super[LinkedList].NodeImpl with super[PriorityTree].NodeImpl; -} - -trait Matcher extends PrecedenceParser { - type Node <: NodeImpl; - trait NodeImpl extends super.NodeImpl; - - type Matchable <: Node with MatchableImpl; - implicit def convertMatchable(m : MatchableImpl) = m.asInstanceOf[Matchable]; - trait MatchableImpl extends NodeImpl { - override def chop : Node = { - Console.println("passed"); super.chop; - } - } -} - -class Test1 extends OffsetList with Matcher { - type Node = NodeImpl; - trait NodeImpl extends super[OffsetList].NodeImpl with super[Matcher].NodeImpl; - class MatchableImpl extends super.MatchableImpl with NodeImpl; - type Matchable = MatchableImpl; -} - -object Test extends App { - val test = new Test1; - val m = new test.MatchableImpl; - m.chop; -} |