We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a case like this
class A { function trySomething() { trace("tried"); } } class B extends A { function askConfirm(onConfirm:Void->Void) {} override function trySomething() { function continueTrying() { trace("more stuff"); super.trySomething(); } if (true) { askConfirm(() -> continueTrying()); } else { continueTrying(); } } }
but super.trySomething() gives me
super.trySomething()
Cannot access super inside a local function Try Haxe
Cannot access super inside a local function
So I need to create a separate same-scope function that is meant to be used exclusively inside trySomething(), which I would rather not have to do
Is there any chance we'd be able to use super in local functions in the future?
The text was updated successfully, but these errors were encountered:
No, this cannot be implemented on all targets.
Sorry, something went wrong.
No branches or pull requests
I have a case like this
but
super.trySomething()
gives meCannot access super inside a local function
Try Haxe
So I need to create a separate same-scope function that is meant to be used exclusively inside trySomething(), which I would rather not have to do
Is there any chance we'd be able to use super in local functions in the future?
The text was updated successfully, but these errors were encountered: