23 lines
383 B
Text
23 lines
383 B
Text
=== tests/cases/conformance/es6/computedProperties/computedPropertyNames41_ES5.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
|
|
}
|