Applied suggested change.

This commit is contained in:
Daniel Rosenwasser 2016-05-01 21:08:53 -07:00
parent fa67cb86b3
commit ee4baef51f

View File

@ -5912,7 +5912,7 @@ namespace ts {
}
// The constraint may need to be further instantiated with its 'this' type.
constraint = getTypeWithThisArgument(constraint);
constraint = getTypeWithThisArgument(constraint, source);
// Report constraint errors only if the constraint is not the empty object type
const reportConstraintErrors = reportErrors && constraint !== emptyObjectType;