From e964cb10ca56e81cf8daa2f2a1a019f66087781f Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Wed, 14 Oct 2015 12:16:14 -0700 Subject: [PATCH] Make constructor use merged parent symbol Previously in getSignatureFromDeclaration, it just used the parent symbol without checking whether it was merged. --- src/compiler/checker.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index fe203ac52c9..cd1574fa581 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -3679,7 +3679,9 @@ namespace ts { function getSignatureFromDeclaration(declaration: SignatureDeclaration): Signature { let links = getNodeLinks(declaration); if (!links.resolvedSignature) { - let classType = declaration.kind === SyntaxKind.Constructor ? getDeclaredTypeOfClassOrInterface((declaration.parent).symbol) : undefined; + let classType = declaration.kind === SyntaxKind.Constructor ? + getDeclaredTypeOfClassOrInterface(getMergedSymbol((declaration.parent).symbol)) + : undefined; let typeParameters = classType ? classType.localTypeParameters : declaration.typeParameters ? getTypeParametersFromDeclaration(declaration.typeParameters) : undefined; let parameters: Symbol[] = [];