mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 12:15:34 -06:00
Address CR feedback
This commit is contained in:
parent
616a648b4b
commit
2da65c20b0
@ -4379,7 +4379,7 @@ namespace ts {
|
||||
case TypeSystemPropertyName.ImmediateBaseConstraint:
|
||||
return !!(<Type>target).immediateBaseConstraint;
|
||||
}
|
||||
return Debug.fail("Unhandled TypeSystemPropertyName " + propertyName);
|
||||
return Debug.assertNever(propertyName);
|
||||
}
|
||||
|
||||
// Pop an entry from the type resolution stack and return its associated result value. The result value will
|
||||
@ -7858,6 +7858,7 @@ namespace ts {
|
||||
return inferences && getIntersectionType(inferences);
|
||||
}
|
||||
|
||||
/** This is a worker function. Use getConstraintOfTypeParameter which guards against circular constraints. */
|
||||
function getConstraintFromTypeParameter(typeParameter: TypeParameter): Type | undefined {
|
||||
if (!typeParameter.constraint) {
|
||||
if (typeParameter.target) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user