Skip to content

Commit e964cb1

Browse files
committed
Make constructor use merged parent symbol
Previously in getSignatureFromDeclaration, it just used the parent symbol without checking whether it was merged.
1 parent 12b7a99 commit e964cb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/checker.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -3679,7 +3679,9 @@ namespace ts {
36793679
function getSignatureFromDeclaration(declaration: SignatureDeclaration): Signature {
36803680
let links = getNodeLinks(declaration);
36813681
if (!links.resolvedSignature) {
3682-
let classType = declaration.kind === SyntaxKind.Constructor ? getDeclaredTypeOfClassOrInterface((<ClassDeclaration>declaration.parent).symbol) : undefined;
3682+
let classType = declaration.kind === SyntaxKind.Constructor ?
3683+
getDeclaredTypeOfClassOrInterface(getMergedSymbol((<ClassDeclaration>declaration.parent).symbol))
3684+
: undefined;
36833685
let typeParameters = classType ? classType.localTypeParameters :
36843686
declaration.typeParameters ? getTypeParametersFromDeclaration(declaration.typeParameters) : undefined;
36853687
let parameters: Symbol[] = [];

0 commit comments

Comments
 (0)