Fix `inherit` in methods without type annotations

Uses of inherited method names inside other methods that
didn't have type annotations didn't work properly.