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

10 lines
172 B
TypeScript

// @target: es5
var b: boolean;
class C {
[b]() {}
static [true]() { }
[[]]() { }
static [{}]() { }
[undefined]() { }
static [null]() { }
}