Skip to content

Commit f19a2f5

Browse files
committed
Fixup comments
1 parent 10f9fa6 commit f19a2f5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7978,7 +7978,7 @@ namespace ts {
79787978
}
79797979
// An instance property must be accessed through an instance of the enclosing class
79807980
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
79827982
type = getConstraintOfTypeParameter(<TypeParameter>type);
79837983
}
79847984

src/services/services.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4106,7 +4106,8 @@ namespace ts {
41064106
let allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures();
41074107

41084108
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
41104111
signature = allSignatures.length ? allSignatures[0] : undefined;
41114112
}
41124113

0 commit comments

Comments
 (0)