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

10 lines
141 B
TypeScript

// @target: es6
var b: boolean;
var v = {
[b]: 0,
[true]: 1,
[[]]: 0,
[{}]: 0,
[undefined]: undefined,
[null]: null
}