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

22 lines
499 B
TypeScript

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