From f6e9dad838b95ef6895d00333d7e1de9ab9de8cc Mon Sep 17 00:00:00 2001 From: Zhengbo Li Date: Thu, 16 Feb 2017 14:04:43 -0800 Subject: [PATCH] Check `fullName` has value for typedefTag --- src/compiler/binder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 493101f1688..723148ba93e 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1317,7 +1317,7 @@ namespace ts { // if the node has a fullName "A.B.C", that means symbol "C" was already bound // when we visit "fullName"; so when we visit the name "C" as the next child of // the jsDocTypedefTag, we should skip binding it. - if (n === node.name && node.fullName.kind !== SyntaxKind.Identifier) { + if (node.fullName && n === node.name && node.fullName.kind !== SyntaxKind.Identifier) { return; } bind(n);