2015-02-03 00:15:54 +01:00
|
|
|
//// [computedPropertyNamesOnOverloads.ts]
|
|
|
|
var methodName = "method";
|
|
|
|
var accessorName = "accessor";
|
|
|
|
class C {
|
|
|
|
[methodName](v: string);
|
|
|
|
[methodName]();
|
|
|
|
[methodName](v?: string) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNamesOnOverloads.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-03 00:15:54 +01:00
|
|
|
return C;
|
|
|
|
})();
|