TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts
2015-02-03 17:43:31 -08:00

17 lines
328 B
TypeScript

// @target: es5
var s: string;
var n: number;
var a: any;
class C {
[s]: number;
[n] = n;
static [s + s]: string;
[s + n] = 2;
[+s]: typeof s;
static [""]: number;
[0]: number;
[a]: number;
static [<any>true]: number;
[`hello bye`] = 0;
static [`hello ${a} bye`] = 0
}