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