mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
Fixed bug in type verifier that resulted in incorrect reporting of an unknown type when a type alias was defined using a TypeAlias
annotation.
This commit is contained in:
parent
270e23ce2a
commit
66456a4d7d
@ -183,6 +183,7 @@ export class Symbol {
|
||||
|
||||
if (declaration.typeAliasAnnotation) {
|
||||
curDecl.typeAliasAnnotation = declaration.typeAliasAnnotation;
|
||||
curDecl.typeAliasName = declaration.typeAliasName;
|
||||
}
|
||||
|
||||
if (!curDecl.inferredTypeSource && declaration.inferredTypeSource) {
|
||||
|
Loading…
Reference in New Issue
Block a user