aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3890.scala
blob: 0c5f5dfe6f2100fb7e80cfcf87243feedbf440a3 (plain) (blame)
1
2
3
4
object Test {
 def g[S, T <: S](s: S)(t: T): Unit = println("")
 g("a")("a") // error: inferred type arguments [java.lang.String] do not conform to method g's type parameter bounds [T <: S]
}