Add assert in reportNoCommonSupertypeError

This commit is contained in:
Jason Freeman
2015-03-13 15:35:58 -07:00
parent 1bb4a62988
commit f6de919407

View File

@@ -4379,6 +4379,8 @@ module ts {
}
}
Debug.assert(!!downfallType, "If there is no common supertype, each type should have a downfallType");
if (score > bestSupertypeScore) {
bestSupertype = types[i];
bestSupertypeDownfallType = downfallType;