TypeScript/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js
2015-02-03 17:43:31 -08:00

19 lines
438 B
JavaScript

//// [computedPropertyNamesOnOverloads_ES5.ts]
var methodName = "method";
var accessorName = "accessor";
class C {
[methodName](v: string);
[methodName]();
[methodName](v?: string) { }
}
//// [computedPropertyNamesOnOverloads_ES5.js]
var methodName = "method";
var accessorName = "accessor";
var C = (function () {
function C() {
}
C.prototype[methodName] = function (v) {
};
return C;
})();