TypeScript/tests/baselines/reference/accessorWithES5.types

40 lines
961 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES5.ts ===
class C {
2015-04-13 23:01:57 +02:00
>C : C, Symbol(C, Decl(accessorWithES5.ts, 0, 0))
2014-08-15 23:33:16 +02:00
get x() {
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(accessorWithES5.ts, 1, 9))
2014-08-15 23:33:16 +02:00
return 1;
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
}
class D {
2015-04-13 23:01:57 +02:00
>D : D, Symbol(D, Decl(accessorWithES5.ts, 5, 1))
2014-08-15 23:33:16 +02:00
set x(v) {
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(accessorWithES5.ts, 7, 9))
>v : any, Symbol(v, Decl(accessorWithES5.ts, 8, 10))
2014-08-15 23:33:16 +02:00
}
}
var x = {
2015-04-13 23:01:57 +02:00
>x : { a: number; }, Symbol(x, Decl(accessorWithES5.ts, 12, 3))
2014-08-22 03:39:46 +02:00
>{ get a() { return 1 }} : { a: number; }
2014-08-15 23:33:16 +02:00
get a() { return 1 }
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(accessorWithES5.ts, 12, 9))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
var y = {
2015-04-13 23:01:57 +02:00
>y : { b: any; }, Symbol(y, Decl(accessorWithES5.ts, 16, 3))
2014-08-22 03:39:46 +02:00
>{ set b(v) { }} : { b: any; }
2014-08-15 23:33:16 +02:00
set b(v) { }
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(accessorWithES5.ts, 16, 9))
>v : any, Symbol(v, Decl(accessorWithES5.ts, 17, 10))
2014-08-15 23:33:16 +02:00
}