169 lines
2 KiB
Text
169 lines
2 KiB
Text
=== tests/cases/compiler/downlevelLetConst17.ts ===
|
|
'use strict'
|
|
>'use strict' : string
|
|
|
|
declare function use(a: any);
|
|
>use : (a: any) => any
|
|
>a : any
|
|
|
|
var x;
|
|
>x : any
|
|
|
|
for (let x = 10; ;) {
|
|
>x : number
|
|
>10 : number
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : number
|
|
}
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
|
|
for (const x = 10; ;) {
|
|
>x : number
|
|
>10 : number
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : number
|
|
}
|
|
|
|
for (; ;) {
|
|
let x = 10;
|
|
>x : number
|
|
>10 : number
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : number
|
|
|
|
x = 1;
|
|
>x = 1 : number
|
|
>x : number
|
|
>1 : number
|
|
}
|
|
|
|
for (; ;) {
|
|
const x = 10;
|
|
>x : number
|
|
>10 : number
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : number
|
|
}
|
|
|
|
for (let x; ;) {
|
|
>x : any
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
|
|
x = 1;
|
|
>x = 1 : number
|
|
>x : any
|
|
>1 : number
|
|
}
|
|
|
|
for (; ;) {
|
|
let x;
|
|
>x : any
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
|
|
x = 1;
|
|
>x = 1 : number
|
|
>x : any
|
|
>1 : number
|
|
}
|
|
|
|
while (true) {
|
|
>true : boolean
|
|
|
|
let x;
|
|
>x : any
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
}
|
|
|
|
while (true) {
|
|
>true : boolean
|
|
|
|
const x = true;
|
|
>x : boolean
|
|
>true : boolean
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : boolean
|
|
}
|
|
|
|
do {
|
|
let x;
|
|
>x : any
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
|
|
} while (true);
|
|
>true : boolean
|
|
|
|
do {
|
|
let x;
|
|
>x : any
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
|
|
} while (true);
|
|
>true : boolean
|
|
|
|
for (let x in []) {
|
|
>x : any
|
|
>[] : undefined[]
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
}
|
|
|
|
for (const x in []) {
|
|
>x : any
|
|
>[] : undefined[]
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
}
|
|
|
|
for (const x of []) {
|
|
>x : any
|
|
>[] : undefined[]
|
|
|
|
use(x);
|
|
>use(x) : any
|
|
>use : (a: any) => any
|
|
>x : any
|
|
}
|