swc/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES5.ts

17 lines
293 B
TypeScript
Raw Normal View History

// @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`]() { }
}