Skip to content

Commit 589e1f4

Browse files
committed
Update comment
1 parent f8e2cc1 commit 589e1f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9417,8 +9417,8 @@ namespace ts {
94179417
if (getObjectFlags(source) & ObjectFlags.Reference && getObjectFlags(target) & ObjectFlags.Reference && (<TypeReference>source).target === (<TypeReference>target).target &&
94189418
!(source.flags & TypeFlags.MarkerType || target.flags & TypeFlags.MarkerType)) {
94199419
// We have type references to the same generic type, and the type references are not marker
9420-
// type references (which we always compare structurally). Obtain the variance information
9421-
// for the type parameters and relate the type arguments accordingly.
9420+
// type references (which are intended by be compared structurally). Obtain the variance
9421+
// information for the type parameters and relate the type arguments accordingly.
94229422
const variances = getVariances((<TypeReference>source).target);
94239423
if (result = typeArgumentsRelatedTo(<TypeReference>source, <TypeReference>target, variances, reportErrors)) {
94249424
return result;

0 commit comments

Comments
 (0)