aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t3862.scala
blob: 8ca4a0586120e7439dd186a1cd375c6d2c1da9d4 (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): Unit = {}

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

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