aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/typedapply.scala
blob: 706b05da3592a14b8e06abad3d3ff1efa265e49d (plain) (tree)
1
2
3
4
5
6
7
8
9



                                    
                                                               
 
                                                                              
 
                     
 
                                                
 
 
object typedapply {

  def foo[X, Y](x: X, y: Y) = (x, y)

  foo[Int](1, "abc")  // error: wrong number of type parameters

  foo[Int, String, String](1, "abc") // error: wrong number of type parameters

  def bar(x: Int) = x

  bar[Int](1) // error: does not take parameters

}