Skip to content

Commit 2da65c2

Browse files
ahejlsbergmhegazy
authored andcommitted
Address CR feedback
1 parent 616a648 commit 2da65c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4379,7 +4379,7 @@ namespace ts {
43794379
case TypeSystemPropertyName.ImmediateBaseConstraint:
43804380
return !!(<Type>target).immediateBaseConstraint;
43814381
}
4382-
return Debug.fail("Unhandled TypeSystemPropertyName " + propertyName);
4382+
return Debug.assertNever(propertyName);
43834383
}
43844384

43854385
// Pop an entry from the type resolution stack and return its associated result value. The result value will
@@ -7858,6 +7858,7 @@ namespace ts {
78587858
return inferences && getIntersectionType(inferences);
78597859
}
78607860

7861+
/** This is a worker function. Use getConstraintOfTypeParameter which guards against circular constraints. */
78617862
function getConstraintFromTypeParameter(typeParameter: TypeParameter): Type | undefined {
78627863
if (!typeParameter.constraint) {
78637864
if (typeParameter.target) {

0 commit comments

Comments
 (0)