Skip to content

Commit 89c992a

Browse files
author
Andy Hanson
committed
Respond to PR comments
1 parent 6260772 commit 89c992a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/compiler/checker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,8 +3202,8 @@ namespace ts {
32023202
return parameter && parameter.symbol;
32033203
}
32043204

3205-
function getAnnotatedAccessorThisType(accessor: AccessorDeclaration): Type | undefined {
3206-
return getThisTypeOfSignature(getSignatureFromDeclaration(accessor));
3205+
function getThisTypeOfDeclaration(declaration: SignatureDeclaration): Type | undefined {
3206+
return getThisTypeOfSignature(getSignatureFromDeclaration(declaration));
32073207
}
32083208

32093209
function getTypeOfAccessors(symbol: Symbol): Type {
@@ -8603,7 +8603,7 @@ namespace ts {
86038603
return type;
86048604
}
86058605

8606-
const thisType = getThisTypeOfSignature(getSignatureFromDeclaration(container));
8606+
const thisType = getThisTypeOfDeclaration(container);
86078607
if (thisType) {
86088608
return thisType;
86098609
}
@@ -13500,7 +13500,7 @@ namespace ts {
1350013500
// TypeScript 1.0 spec (April 2014): 4.5
1350113501
// If both accessors include type annotations, the specified types must be identical.
1350213502
checkAccessorDeclarationTypesIdentical(node, otherAccessor, getAnnotatedAccessorType, Diagnostics.get_and_set_accessor_must_have_the_same_type);
13503-
checkAccessorDeclarationTypesIdentical(node, otherAccessor, getAnnotatedAccessorThisType, Diagnostics.get_and_set_accessor_must_have_the_same_this_type);
13503+
checkAccessorDeclarationTypesIdentical(node, otherAccessor, getThisTypeOfDeclaration, Diagnostics.get_and_set_accessor_must_have_the_same_this_type);
1350413504
}
1350513505
}
1350613506
getTypeOfAccessors(getSymbolOfNode(node));

0 commit comments

Comments
 (0)