File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7978,7 +7978,7 @@ namespace ts {
7978
7978
}
7979
7979
// An instance property must be accessed through an instance of the enclosing class
7980
7980
if (type.flags & TypeFlags.ThisType) {
7981
- // get the original type -- represented as the type constraint of the this type
7981
+ // get the original type -- represented as the type constraint of the ' this' type
7982
7982
type = getConstraintOfTypeParameter(<TypeParameter>type);
7983
7983
}
7984
7984
Original file line number Diff line number Diff line change @@ -4106,7 +4106,8 @@ namespace ts {
4106
4106
let allSignatures = useConstructSignatures ? type . getConstructSignatures ( ) : type . getCallSignatures ( ) ;
4107
4107
4108
4108
if ( ! contains ( allSignatures , signature . target ) && ! contains ( allSignatures , signature ) ) {
4109
- // Get the first signature if there
4109
+ // Get the first signature if there is one -- allSignatures may contain
4110
+ // either the original signature or its target, so check for either
4110
4111
signature = allSignatures . length ? allSignatures [ 0 ] : undefined ;
4111
4112
}
4112
4113
You can’t perform that action at this time.
0 commit comments