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

17 lines
309 B
TypeScript

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