Skip to content

Commit

Permalink
Addressing CR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg authored and mhegazy committed Aug 29, 2015
1 parent 2ee80f1 commit 5656962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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)) {
Expand Down

0 comments on commit 5656962

Please sign in to comment.