Skip to content

Commit ff6059a

Browse files
committed
Address CR feedback
1 parent fe9ca72 commit ff6059a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/checker.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4372,7 +4372,7 @@ namespace ts {
43724372
case TypeSystemPropertyName.ImmediateBaseConstraint:
43734373
return !!(<Type>target).immediateBaseConstraint;
43744374
}
4375-
return Debug.fail("Unhandled TypeSystemPropertyName " + propertyName);
4375+
return Debug.assertNever(propertyName);
43764376
}
43774377

43784378
// Pop an entry from the type resolution stack and return its associated result value. The result value will
@@ -7879,6 +7879,7 @@ namespace ts {
78797879
return inferences && getIntersectionType(inferences);
78807880
}
78817881

7882+
/** This is a worker function. Use getConstraintOfTypeParameter which guards against circular constraints. */
78827883
function getConstraintFromTypeParameter(typeParameter: TypeParameter): Type | undefined {
78837884
if (!typeParameter.constraint) {
78847885
if (typeParameter.target) {

0 commit comments

Comments
 (0)