Fixed another bug.

This commit is contained in:
Eric Traut 2019-11-14 22:36:56 -08:00
parent 40f2eccc49
commit 12cb6c3055

View File

@ -7652,7 +7652,7 @@ export function createTypeEvaluator(importLookup: ImportLookup): TypeEvaluator {
// inferred type for this node.
if (resolvedDecl.type === DeclarationType.Parameter) {
evaluateTypeOfParameter(resolvedDecl.node);
return readTypeCache(resolvedDecl.node);
return readTypeCache(resolvedDecl.node.name!);
}
if (resolvedDecl.type === DeclarationType.Variable && resolvedDecl.inferredTypeSource) {