18 lines
365 B
JavaScript
18 lines
365 B
JavaScript
|
//// [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;
|
||
|
})();
|