|
might be a coding horror, but is there a programmatic way to get the concrete parent class of an anonymous class? i.e. given val x = new Thing with SomeTraitAndNowImAnonymous is there a method on x I can call that will return Thing?
|
# ¿ Nov 5, 2015 00:36 |
|
|
# ¿ May 12, 2024 14:17 |
|
it is for the dumbest of reasons - providing a className to a logger instance that is mixed in as a trait. edit: the logger trait isnt the trait being mixed in at instantiation time.
|
# ¿ Nov 5, 2015 17:36 |