blob: b80281c9ff6794a3fffb9db0f2d299e55476f0ed (
plain) (
tree)
|
|
object typedapply {
def foo[X, Y](x: X, y: Y) = (x, y)
foo[Int](1, "abc")
foo[Int, String, String](1, "abc")
def bar(x: Int) = x
bar[Int](1)
def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y)
baz[Int, String](1, "abc")
}
|