blob: 4ab7c832e668bbc84bcb047a686cfb26c18fc00f (
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()
ms.foreach(m => println(m.getName))
}
}
|