aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t397.scala
blob: 87be2987ab78d3f84c26fada1b6f94051a059690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
abstract class Root {

  abstract class Edge {
    type V;
    def source: V;
  }

  abstract class Graph {
    type W;
    type E <: Edge{type V = W};
    def edge: E;
  }

  val g: Graph{type W = Int};
  val x: Int = g.edge.source;
}