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

variance modifier wrapper function #162

Open
DetachHead opened this issue Jul 15, 2022 · 1 comment
Open

variance modifier wrapper function #162

DetachHead opened this issue Jul 15, 2022 · 1 comment
Labels

Comments

@DetachHead
Copy link
Owner

sometimes you need to write a function with the old function syntax (eg. to access super or to make a generator) but still want to leverage the variance checks that arrow functions have

something like

class Foo {
    foo = toArrowFunction(function() {
        super.foo()
    })
}

(idk if this will work)

@DetachHead
Copy link
Owner Author

that example doesn't work because it needs to be a method not a function

@DetachHead DetachHead added the help wanted Extra attention is needed label Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant