2015-02-04 02:43:31 +01:00
|
|
|
//// [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() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype[methodName] = function (v) { };
|
2015-02-04 02:43:31 +01:00
|
|
|
return C;
|
|
|
|
})();
|