Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support calling an extension method defined in a super from subclass without the `this` qualifier #31

Closed
rsmckinney opened this issue Dec 7, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@rsmckinney
Copy link
Member

commented Dec 7, 2018

Support calling an extension method defined in a super from subclass without the this qualifier

given:

class Base {
}

@Extension
class BaseExt {
  public static void myBaseExtension(@This Base thiz) {...}
}
class Sub extends Base {
  void blah() {
    myBaseExtension();        // <~~~ Make this work
    this.myBaseExtension(); // <~~~ this works now     
  }
}

@rsmckinney rsmckinney closed this in fba6c87 Dec 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.