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:
Eric Traut 2021-09-03 09:25:31 -07:00
parent 270e23ce2a
commit 66456a4d7d

View File

@ -183,6 +183,7 @@ export class Symbol {
if (declaration.typeAliasAnnotation) {
curDecl.typeAliasAnnotation = declaration.typeAliasAnnotation;
curDecl.typeAliasName = declaration.typeAliasName;
}
if (!curDecl.inferredTypeSource && declaration.inferredTypeSource) {