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

22 lines
541 B
TypeScript

//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit2_ES6.ts] ////
//// [computedPropertyNamesDeclarationEmit2_ES6.ts]
class C {
static ["" + ""]() { }
static get ["" + ""]() { return 0; }
static set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit2_ES6.js]
"use strict";
class C {
static ["" + ""]() { }
static get ["" + ""]() { return 0; }
static set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit2_ES6.d.ts]
declare class C {
}