TypeScript/tests/baselines/reference/computedPropertyNames41_ES6.types
2015-04-15 16:44:20 -07:00

24 lines
383 B
Plaintext

=== tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES6.ts ===
class Foo { x }
>Foo : Foo
>x : any
class Foo2 { x; y }
>Foo2 : Foo2
>x : any
>y : any
class C {
>C : C
[s: string]: () => Foo2;
>s : string
>Foo2 : Foo2
// Computed properties
static [""]() { return new Foo }
>"" : string
>new Foo : Foo
>Foo : typeof Foo
}