aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/typedapply.scala
blob: ae168bcd9d38ee15e6f6a83880d95dda1910511b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                   
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")
  
}