summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/abstract.scala
blob: 533f99693168697462edddb70733515e73476b33 (plain) (blame)
1
2
3
4
5
6
7
8
9
abstract class C() {
  type t;
  def copy(x: t): t = x;
}

class D() extends C() {
  type t = Int;
  System.out.println(copy(1));
}