typing: move redef class check before inheritance
[nit.git] / tests / sav / error_needed_method.sav