summaryrefslogblamecommitdiff
path: root/test/files/pos/sammy_infer_argtype_subtypes.scala
blob: 63966f879e58f566f895ebcfaeabd77c281b75f9 (plain) (tree)
1
2
3
4
5
6





                                            
trait Fun[A, B] { def apply(a: A): B }

class SamInferResult {
  def foreach[U](f: Fun[String, U]): U = ???
  def foo = foreach(println)
}