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






                                                        

                                                                    

   
class Foo[@specialized(Int) A](a:A) {
  def bar[@specialized(Int) B](f:A => B) = new Foo(f(a))
}

object Test {
  def main(args:Array[String]) {
    val f = new Foo(333)
    val ms = f.getClass().getDeclaredMethods().map(_.getName).sorted
    ms.foreach(println)
  }
}