File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4379,7 +4379,7 @@ namespace ts {
4379
4379
case TypeSystemPropertyName.ImmediateBaseConstraint:
4380
4380
return !!(<Type>target).immediateBaseConstraint;
4381
4381
}
4382
- return Debug.fail("Unhandled TypeSystemPropertyName " + propertyName);
4382
+ return Debug.assertNever( propertyName);
4383
4383
}
4384
4384
4385
4385
// Pop an entry from the type resolution stack and return its associated result value. The result value will
@@ -7858,6 +7858,7 @@ namespace ts {
7858
7858
return inferences && getIntersectionType(inferences);
7859
7859
}
7860
7860
7861
+ /** This is a worker function. Use getConstraintOfTypeParameter which guards against circular constraints. */
7861
7862
function getConstraintFromTypeParameter(typeParameter: TypeParameter): Type | undefined {
7862
7863
if (!typeParameter.constraint) {
7863
7864
if (typeParameter.target) {
You can’t perform that action at this time.
0 commit comments