2015-02-03 00:15:54 +01:00
|
|
|
//// [fieldAndGetterWithSameName.ts]
|
|
|
|
export class C {
|
|
|
|
x: number;
|
|
|
|
get x(): number { return 1; }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [fieldAndGetterWithSameName.js]
|
|
|
|
define(["require", "exports"], function (require, exports) {
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, "x", {
|
2015-03-09 02:23:23 +01:00
|
|
|
get: function () {
|
|
|
|
return 1;
|
|
|
|
},
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
exports.C = C;
|
|
|
|
});
|