blob: fb176e32e61e82444b4b617a49e791b49fafb6af (
plain) (
tree)
|
|
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().sortBy(_.getName)
ms.foreach(m => println(m.getName))
}
}
|