You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generic inference different between equivalent function expression and shorthand method in object literal (vol 2) #34849
This worked in 3.5 and was broken by #25937. I'm thinking it is possible to recognize cases where the new logic in #25937 can be circumvented because it will have no effect anyway.
Activity
AnyhowStep commentedon Oct 31, 2019
Maybe somewhat related?
#14829
If non-inferential usage is implemented, this might be a perfect use case.
TS playground is unusable on Android (can't edit anything), so I can't test but what happens when
getteranddepsare switched?[Edit]
Switching them gives the desired inference.
ahejlsberg commentedon Nov 18, 2019
This worked in 3.5 and was broken by #25937. I'm thinking it is possible to recognize cases where the new logic in #25937 can be circumvented because it will have no effect anyway.