trait PublicApi{
def sayHi(from:String,content:String)
}
I know that it is impossible in java to get "from" and "content" at runtime, but can scala help me here? as a definition
trait PublicApi{
def sayHi(from:String,content:String)(m:Manifest)
}
a call to m.methodErasure.getArgumentName (0) will return "from"
source
share