mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
564 B
TypeScript
25 lines
564 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts] ////
|
|
|
|
//// [computedPropertyNamesDeclarationEmit5_ES6.ts]
|
|
var v = {
|
|
["" + ""]: 0,
|
|
["" + ""]() { },
|
|
get ["" + ""]() { return 0; },
|
|
set ["" + ""](x) { }
|
|
}
|
|
|
|
//// [computedPropertyNamesDeclarationEmit5_ES6.js]
|
|
"use strict";
|
|
var v = {
|
|
["" + ""]: 0,
|
|
["" + ""]() { },
|
|
get ["" + ""]() { return 0; },
|
|
set ["" + ""](x) { }
|
|
};
|
|
|
|
|
|
//// [computedPropertyNamesDeclarationEmit5_ES6.d.ts]
|
|
declare var v: {
|
|
[x: string]: any;
|
|
};
|