File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments