TypeScript/tests/baselines/reference/computedPropertyNames37_ES6.types

29 lines
1 KiB
Text
Raw Normal View History

=== tests/cases/conformance/es6/computedProperties/computedPropertyNames37_ES6.ts ===
class Foo { x }
>Foo : Foo, Symbol(Foo,Decl(computedPropertyNames37_ES6.ts,0,0))
>x : any, Symbol(x,Decl(computedPropertyNames37_ES6.ts,0,11))
class Foo2 { x; y }
>Foo2 : Foo2, Symbol(Foo2,Decl(computedPropertyNames37_ES6.ts,0,15))
>x : any, Symbol(x,Decl(computedPropertyNames37_ES6.ts,1,12))
>y : any, Symbol(y,Decl(computedPropertyNames37_ES6.ts,1,15))
class C {
>C : C, Symbol(C,Decl(computedPropertyNames37_ES6.ts,1,19))
[s: number]: Foo2;
>s : number, Symbol(s,Decl(computedPropertyNames37_ES6.ts,4,5))
>Foo2 : Foo2, Symbol(Foo2,Decl(computedPropertyNames37_ES6.ts,0,15))
// Computed properties
get ["get1"]() { return new Foo }
2015-04-13 21:36:11 +02:00
>"get1" : string
>new Foo : Foo
>Foo : typeof Foo, Symbol(Foo,Decl(computedPropertyNames37_ES6.ts,0,0))
set ["set1"](p: Foo2) { }
2015-04-13 21:36:11 +02:00
>"set1" : string
>p : Foo2, Symbol(p,Decl(computedPropertyNames37_ES6.ts,8,17))
>Foo2 : Foo2, Symbol(Foo2,Decl(computedPropertyNames37_ES6.ts,0,15))
}