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

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