22 lines
369 B
Text
22 lines
369 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 }
|
|
>new Foo : Foo
|
|
>Foo : typeof Foo
|
|
}
|