summaryrefslogblamecommitdiff
path: root/test/files/run/t4024.scala
blob: f48410915d8463e33ccacc994e00a14f01104b22 (plain) (tree)
1
2
3
4
5
6
7
8
9
                         
 
               

                                          
 
                                                       

                     

 








                                            
object Test extends App {

  val x = "abc"

  val m = x.getClass.getMethod("toString")

  assert(m.invoke(x, (Nil: List[AnyRef]): _*) == "abc")

  Test2.main(Array())
}


object Test2 {
  def main(args: Array[String]): Unit = {
    val x = "abc"
    val m = x.getClass.getMethod("toString")
    m.invoke(x, Nil: _*)
    m.invoke(x, Seq(): _*)
  }
}