-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Conformance test for update spec section 4.9.3 contextual typing in function expression #2761
Conversation
Don't use the name |
var g: ((s: string, w: boolean) => void) | ((n: number) => number); | ||
var g1: ((s: string, w: boolean) => void) | ((s: string, w: number) => string); | ||
|
||
g1 = (j, m) => { } // Per spec, no contextual signature can be extracted in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain why no signature can be extracted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain that no signature can be extracted "in the following cases".
…uncExp Conformance test for update spec section 4.9.3 contextual typing in function expression
Conformance in update spec section 4.9.3 PR #1878