summaryrefslogblamecommitdiff
path: root/test/pos/infer2.scala
blob: 5e93446cdfb740c18b2ff7c97740798ed07e4cc7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                   
module test {

  def f[a, b <: a](x: b): a = x: a;
  def g[a >: b, b](x: b): a = x: a;

  val x: int = f(1);
  val y: String = g("")

}