TypeScript/tests/baselines/reference/objectLiteralShorthandPropertiesES6.types

51 lines
1.6 KiB
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;
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 0, 3))
>b : any, Symbol(b, Decl(objectLiteralShorthandPropertiesES6.ts, 0, 6))
>c : any, Symbol(c, Decl(objectLiteralShorthandPropertiesES6.ts, 0, 9))
2014-11-11 20:31:45 +01:00
var x1 = {
2015-04-13 23:01:57 +02:00
>x1 : { a: any; }, Symbol(x1, Decl(objectLiteralShorthandPropertiesES6.ts, 2, 3))
2014-11-11 20:31:45 +01:00
>{ a} : { a: any; }
a
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 2, 10))
2014-11-11 20:31:45 +01:00
};
var x2 = {
2015-04-13 23:01:57 +02:00
>x2 : { a: any; }, Symbol(x2, Decl(objectLiteralShorthandPropertiesES6.ts, 6, 3))
2014-11-11 20:31:45 +01:00
>{ a,} : { a: any; }
a,
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 6, 10))
2014-11-11 20:31:45 +01:00
}
var x3 = {
2015-04-13 23:01:57 +02:00
>x3 : any, Symbol(x3, Decl(objectLiteralShorthandPropertiesES6.ts, 10, 3))
>{ 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,
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(objectLiteralShorthandPropertiesES6.ts, 10, 10))
2015-04-13 21:36:11 +02:00
>0 : number
2014-11-11 20:31:45 +01:00
b,
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(objectLiteralShorthandPropertiesES6.ts, 11, 9))
2014-11-11 20:31:45 +01:00
c,
2015-04-13 23:01:57 +02:00
>c : any, Symbol(c, Decl(objectLiteralShorthandPropertiesES6.ts, 12, 6))
2014-11-11 20:31:45 +01:00
d() { },
2015-04-13 23:01:57 +02:00
>d : () => void, Symbol(d, Decl(objectLiteralShorthandPropertiesES6.ts, 13, 6))
2014-11-11 20:31:45 +01:00
x3,
2015-04-13 23:01:57 +02:00
>x3 : any, Symbol(x3, Decl(objectLiteralShorthandPropertiesES6.ts, 14, 12))
2014-11-11 20:31:45 +01:00
parent: x3
2015-04-13 23:01:57 +02:00
>parent : any, Symbol(parent, Decl(objectLiteralShorthandPropertiesES6.ts, 15, 7))
>x3 : any, Symbol(x3, Decl(objectLiteralShorthandPropertiesES6.ts, 10, 3))
2014-11-11 20:31:45 +01:00
};