Fixes #2721, super outside of classes with extends for instance methods.