How to Typecheck a DefDef
问题 Within an annotation Macro, I'm enumerating members of a class and want the types of the methods that I find. So I happily iterate over the body of the class, and collect all the DefDef members. ... which I can't typecheck. For each DefDef I've tried wrapping it in an Expr and using actualType . I've tried duplicating the thing and transplanting it into an ad-hoc class (via quasiquotes). I've tried everything else I can think of :) The best I can get is either NoType or Any , depending on the