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
With this proposal function expressions and arrow functions that have a contextual type will have ambiguous behavior, should they go to the contextual type or the return type.
Presume you're talking about the following case -- then I think we should go to T and not I. (Since one can easily get to I from T but not the other way around.)
TypeScript Version: 3.1.0-dev.20180725
Search Terms:
Code
Go-to-type on
f()
.Expected behavior:
Takes me to
I
.Actual behavior:
Takes me to
f
-- same as go-to-definition.Contrast with this Kotlin code:
where go-to-declaration on
f()
takes me to the definition, but go-to-type takes me toC
.The text was updated successfully, but these errors were encountered: