2015-03-16 20:37:21 +01:00
|
|
|
=== tests/cases/compiler/initializePropertiesWithRenamedLet.ts ===
|
|
|
|
|
|
|
|
var x0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 1, 3))
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
if (true) {
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
|
|
|
|
2015-03-16 20:37:21 +01:00
|
|
|
let x0;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 3, 7))
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
var obj1 = { x0: x0 };
|
2015-04-13 23:01:57 +02:00
|
|
|
>obj1 : { x0: any; }, Symbol(obj1, Decl(initializePropertiesWithRenamedLet.ts, 4, 7))
|
2015-03-16 20:37:21 +01:00
|
|
|
>{ x0: x0 } : { x0: any; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 4, 16))
|
|
|
|
>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 3, 7))
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
var obj2 = { x0 };
|
2015-04-13 23:01:57 +02:00
|
|
|
>obj2 : { x0: any; }, Symbol(obj2, Decl(initializePropertiesWithRenamedLet.ts, 5, 7))
|
2015-03-16 20:37:21 +01:00
|
|
|
>{ x0 } : { x0: any; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>x0 : any, Symbol(x0, Decl(initializePropertiesWithRenamedLet.ts, 5, 16))
|
2015-03-16 20:37:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var x, y, z;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : any, Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 8, 3))
|
|
|
|
>y : any, Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 8, 6))
|
|
|
|
>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 8, 9))
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
if (true) {
|
2015-04-13 21:36:11 +02:00
|
|
|
>true : boolean
|
|
|
|
|
2015-03-16 20:37:21 +01:00
|
|
|
let { x: x } = { x: 0 };
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : any
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 10, 9))
|
2015-03-16 20:37:21 +01:00
|
|
|
>{ x: 0 } : { x: number; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(initializePropertiesWithRenamedLet.ts, 10, 20))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
let { y } = { y: 0 };
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : number, Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 11, 9))
|
2015-03-16 20:37:21 +01:00
|
|
|
>{ y: 0 } : { y: number; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : number, Symbol(y, Decl(initializePropertiesWithRenamedLet.ts, 11, 17))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
let z;
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 12, 7))
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
({ z: z } = { z: 0 });
|
|
|
|
>({ z: z } = { z: 0 }) : { z: number; }
|
|
|
|
>{ z: z } = { z: 0 } : { z: number; }
|
|
|
|
>{ z: z } : { z: any; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 13, 6))
|
|
|
|
>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 12, 7))
|
2015-03-16 20:37:21 +01:00
|
|
|
>{ z: 0 } : { z: number; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : number, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 13, 17))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-03-16 20:37:21 +01:00
|
|
|
|
|
|
|
({ z } = { z: 0 });
|
|
|
|
>({ z } = { z: 0 }) : { z: number; }
|
|
|
|
>{ z } = { z: 0 } : { z: number; }
|
|
|
|
>{ z } : { z: any; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : any, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 14, 6))
|
2015-03-16 20:37:21 +01:00
|
|
|
>{ z: 0 } : { z: number; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : number, Symbol(z, Decl(initializePropertiesWithRenamedLet.ts, 14, 14))
|
2015-04-13 21:36:11 +02:00
|
|
|
>0 : number
|
2015-03-16 20:37:21 +01:00
|
|
|
}
|