mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-20 04:37:57 +03:00
Fixed another bug.
This commit is contained in:
parent
40f2eccc49
commit
12cb6c3055
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user