summaryrefslogtreecommitdiff
path: root/test/files/pos/variances_pos.scala
blob: 7dc56b0225d4ab5d84b53219cc99f059bba0c12b (plain) (blame)
1
2
3
4
5
6
7
8
abstract class P[+a, +b] { // SLS, Example 4.4.2
  def fst: a;
  def snd: b
}

trait Vector[+a] { // SLS, Example 4.4.3 b)
  def append[b >: a](x: Vector[b]): Vector[b]
}