aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t805.scala
blob: a1260a834f73e1b24ee811c73d53692c86cf85a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
trait MatcherYYY  {
  trait NodeImpl;
  trait Matchable extends NodeImpl {
    protected def doMatch : Unit = {}
  }
}
trait BraceMatcherXXX extends MatcherYYY {
  trait NodeImpl2 extends super.NodeImpl {
    def doMatch  (braces : BracePair) : Unit
  }
  trait BracePair {
    trait BraceImpl extends NodeImpl2 with Matchable {
      override def doMatch : Unit = {
        super.doMatch;
        ();
      }
    }
  }
}