Files
tsgo/testdata/baselines/reference/submodule/conformance/computedPropertyNames14_ES6.js

25 lines
486 B
TypeScript

//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES6.ts] ////
//// [computedPropertyNames14_ES6.ts]
var b: boolean;
class C {
[b]() {}
static [true]() { }
[[]]() { }
static [{}]() { }
[undefined]() { }
static [null]() { }
}
//// [computedPropertyNames14_ES6.js]
"use strict";
var b;
class C {
[b]() { }
static [true]() { }
[[]]() { }
static [{}]() { }
[undefined]() { }
static [null]() { }
}