summaryrefslogtreecommitdiff
path: root/test/files/pos/t3862.scala
blob: a6dba84fea1355974c8a1d8769a770f0bd856718 (plain) (blame)
1
2
3
4
5
6
7
8
object OverloadingShapeType {
  // comment out this, and the other alternative is chosen.
  def blerg(f: String) {}

  def blerg[M[X], T](l: M[T]) {}

  blerg(List(1)) // error: type mismatch; found   : List[Int] required: String
}