jeudi 2 août 2018

How to get reflected Method that is not defined in the base class?

I am trying to get the reflected method in an instance but it is not shown in the decls result:

val foo = new Object {
  def bar = 1
}
typeOf[foo.type].decls //Does not contain bar method

How can I get the reflected MethodSymbol?





Aucun commentaire:

Enregistrer un commentaire