35 lines
534 B
Text
35 lines
534 B
Text
=== tests/cases/compiler/downlevelLetConst12.ts ===
|
|
|
|
'use strict'
|
|
>'use strict' : string
|
|
|
|
// top level let\const should not be renamed
|
|
let foo;
|
|
>foo : any
|
|
|
|
const bar = 1;
|
|
>bar : number
|
|
>1 : number
|
|
|
|
let [baz] = [];
|
|
>baz : any
|
|
>[] : undefined[]
|
|
|
|
let {a: baz2} = { a: 1 };
|
|
>a : any
|
|
>baz2 : number
|
|
>{ a: 1 } : { a: number; }
|
|
>a : number
|
|
>1 : number
|
|
|
|
const [baz3] = []
|
|
>baz3 : any
|
|
>[] : undefined[]
|
|
|
|
const {a: baz4} = { a: 1 };
|
|
>a : any
|
|
>baz4 : number
|
|
>{ a: 1 } : { a: number; }
|
|
>a : number
|
|
>1 : number
|
|
|