This fixes an issue when leveraging typeof: that a method signature using it would lead to incorrect compile-time errors if the method is overridden.
Ran into this while doing simple regs work. This PR alone should be an uncontroversial fix, however, I am looking warily at other uses of eval_type where None is passed as the location. Most of it is trait-related, which should really only be able to leverage top-level stuff -- however, today, they can't even do that, as they have no access to even dev. That question however should be left to a different PR.
This fixes an issue when leveraging
typeof
: that a method signature using it would lead to incorrect compile-time errors if the method is overridden.Ran into this while doing simple regs work. This PR alone should be an uncontroversial fix, however, I am looking warily at other uses of
eval_type
whereNone
is passed as the location. Most of it is trait-related, which should really only be able to leverage top-level stuff -- however, today, they can't even do that, as they have no access to evendev
. That question however should be left to a different PR.