getTypeAtLocation
fails on a PropertyAccessExpression
in a type position
#37901
Labels
Milestone
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 3.8.3
Search Terms:
getTypeAtLocation
Code
Expected behavior:
getTypeAtLocation
on thePropertyAccessExpression
node forNodeJS.CallSite
should returnCallSite
.Actual behavior:
Instead, it returns
any
with intrinsic nameerror
.Notes
Note that
getTypeAtLocation
on the parentExpressionWithTypeArguments
does actually succeed.Playground Link: N/A
Related Issues: #35233
Thanks to @bradzacher for finding this!
The text was updated successfully, but these errors were encountered: