Addressing CR feedback

This commit is contained in:
Anders Hejlsberg 2015-08-28 17:39:50 -07:00
parent 49bb2bbc15
commit 603eb86302

View File

@ -4081,7 +4081,7 @@ namespace ts {
}
function isSubtypeOfAny(candidate: Type, types: Type[]): boolean {
for (var i = 0, len = types.length; i < len; i++) {
for (let i = 0, len = types.length; i < len; i++) {
if (candidate !== types[i] && isTypeSubtypeOf(candidate, types[i])) {
return true;
}
@ -4090,7 +4090,7 @@ namespace ts {
}
function removeSubtypes(types: Type[]) {
var i = types.length;
let i = types.length;
while (i > 0) {
i--;
if (isSubtypeOfAny(types[i], types)) {