95 lines
1.1 KiB
Text
95 lines
1.1 KiB
Text
|
=== tests/cases/compiler/systemModule8.ts ===
|
||
|
|
||
|
export var x;
|
||
|
>x : any
|
||
|
|
||
|
x = 1;
|
||
|
>x = 1 : number
|
||
|
>x : any
|
||
|
|
||
|
x++;
|
||
|
>x++ : number
|
||
|
>x : any
|
||
|
|
||
|
x--;
|
||
|
>x-- : number
|
||
|
>x : any
|
||
|
|
||
|
++x;
|
||
|
>++x : number
|
||
|
>x : any
|
||
|
|
||
|
--x;
|
||
|
>--x : number
|
||
|
>x : any
|
||
|
|
||
|
x += 1;
|
||
|
>x += 1 : any
|
||
|
>x : any
|
||
|
|
||
|
x -= 1;
|
||
|
>x -= 1 : number
|
||
|
>x : any
|
||
|
|
||
|
x *= 1;
|
||
|
>x *= 1 : number
|
||
|
>x : any
|
||
|
|
||
|
x /= 1;
|
||
|
>x /= 1 : number
|
||
|
>x : any
|
||
|
|
||
|
x |= 1;
|
||
|
>x |= 1 : number
|
||
|
>x : any
|
||
|
|
||
|
x &= 1;
|
||
|
>x &= 1 : number
|
||
|
>x : any
|
||
|
|
||
|
for (x = 5;;x++) {}
|
||
|
>x = 5 : number
|
||
|
>x : any
|
||
|
>x++ : number
|
||
|
>x : any
|
||
|
|
||
|
for (x = 8;;x--) {}
|
||
|
>x = 8 : number
|
||
|
>x : any
|
||
|
>x-- : number
|
||
|
>x : any
|
||
|
|
||
|
for (let x = 50;;) {}
|
||
|
>x : number
|
||
|
|
||
|
function foo() {
|
||
|
>foo : () => void
|
||
|
|
||
|
x = 100;
|
||
|
>x = 100 : number
|
||
|
>x : any
|
||
|
}
|
||
|
|
||
|
export let [y] = [1];
|
||
|
>y : number
|
||
|
>[1] : [number]
|
||
|
|
||
|
export const {a: z0, b: {c: z1}} = {a: true, b: {c: "123"}};
|
||
|
>a : unknown
|
||
|
>z0 : boolean
|
||
|
>b : unknown
|
||
|
>c : unknown
|
||
|
>z1 : string
|
||
|
>{a: true, b: {c: "123"}} : { a: boolean; b: { c: string; }; }
|
||
|
>a : boolean
|
||
|
>b : { c: string; }
|
||
|
>{c: "123"} : { c: string; }
|
||
|
>c : string
|
||
|
|
||
|
for ([x] of [[1]]) {}
|
||
|
>[x] : any[]
|
||
|
>x : any
|
||
|
>[[1]] : number[][]
|
||
|
>[1] : number[]
|
||
|
|