TypeScript/tests/baselines/reference/objectLiteralShorthandPropertiesES6.types

51 lines
649 B
Plaintext
Raw Normal View History

2014-11-15 00:44:06 +01:00
=== tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesES6.ts ===
2014-11-11 20:31:45 +01:00
var a, b, c;
>a : any
>b : any
>c : any
2014-11-11 20:31:45 +01:00
var x1 = {
>x1 : { a: any; }
2014-11-11 20:31:45 +01:00
>{ a} : { a: any; }
a
>a : any
2014-11-11 20:31:45 +01:00
};
var x2 = {
>x2 : { a: any; }
2014-11-11 20:31:45 +01:00
>{ a,} : { a: any; }
a,
>a : any
2014-11-11 20:31:45 +01:00
}
var x3 = {
>x3 : any
>{ a: 0, b, c, d() { }, x3, parent: x3} : { a: number; b: any; c: any; d(): void; x3: any; parent: any; }
2014-11-11 20:31:45 +01:00
a: 0,
>a : number
2015-04-13 21:36:11 +02:00
>0 : number
2014-11-11 20:31:45 +01:00
b,
>b : any
2014-11-11 20:31:45 +01:00
c,
>c : any
2014-11-11 20:31:45 +01:00
d() { },
>d : () => void
2014-11-11 20:31:45 +01:00
x3,
>x3 : any
2014-11-11 20:31:45 +01:00
parent: x3
>parent : any
>x3 : any
2014-11-11 20:31:45 +01:00
};