9767782a4 ^
3c29bbe79 ^
1
2 3 4
5
6 7 8 9
10
object Test { def g[B >: String <: Int](x: B): Int = x def main(args: Array[String]): Unit = { g("foo") } def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y) baz[Int, String](1, "abc") }