We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49bb2bb commit 603eb86Copy full SHA for 603eb86
src/compiler/checker.ts
@@ -4081,7 +4081,7 @@ namespace ts {
4081
}
4082
4083
function isSubtypeOfAny(candidate: Type, types: Type[]): boolean {
4084
- for (var i = 0, len = types.length; i < len; i++) {
+ for (let i = 0, len = types.length; i < len; i++) {
4085
if (candidate !== types[i] && isTypeSubtypeOf(candidate, types[i])) {
4086
return true;
4087
@@ -4090,7 +4090,7 @@ namespace ts {
4090
4091
4092
function removeSubtypes(types: Type[]) {
4093
- var i = types.length;
+ let i = types.length;
4094
while (i > 0) {
4095
i--;
4096
if (isSubtypeOfAny(types[i], types)) {
0 commit comments