-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Generic callback functions and 'this' #1568
Labels
Comments
That wasn't a very good solution, so I tried something else. Since arrow functions are not supposed to have
to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails with
error TSTL: Unable to convert function with a 'this' parameter to function 'callback' with no 'this'. To fix, wrap in an arrow function, or declare with 'this: void'.
.validateFunctionAssignment fails here. I could make it work by returning immediately if
toType.isTypeParameter()
is true, but I suspect that's not the correct solution to this particular problem.The text was updated successfully, but these errors were encountered: