PR feedback and another test

This commit is contained in:
Jason Freeman
2015-05-07 14:35:58 -07:00
parent d8ef7b612a
commit bb7f617e72
4 changed files with 114 additions and 1 deletions

View File

@@ -3574,7 +3574,8 @@ module ts {
// Since removeSubtypes checks the subtype relation, and the subtype relation on a union
// may attempt to reduce a union, it is possible that removeSubtypes could be called
// recursively on the same set of types.
// recursively on the same set of types. The removeSubtypesStack is used to track which
// sets of types are currently undergoing subtype reduction.
let removeSubtypesStack: string[] = [];
function removeSubtypes(types: Type[]) {
let typeListId = getTypeListId(types);