16 lines
356 B
TypeScript
16 lines
356 B
TypeScript
//// [parserMemberAccessorDeclaration15.ts]
|
|
class C {
|
|
set Foo(public a: number) { }
|
|
}
|
|
|
|
//// [parserMemberAccessorDeclaration15.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
Object.defineProperty(C.prototype, "Foo", {
|
|
set: function (a) { },
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return C;
|
|
})();
|