30 lines
580 B
TypeScript
30 lines
580 B
TypeScript
//// [setterWithReturn.ts]
|
|
class C234 {
|
|
public set p1(arg1) {
|
|
if (true) {
|
|
return arg1;
|
|
}
|
|
else {
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [setterWithReturn.js]
|
|
var C234 = (function () {
|
|
function C234() {
|
|
}
|
|
Object.defineProperty(C234.prototype, "p1", {
|
|
set: function (arg1) {
|
|
if (true) {
|
|
return arg1;
|
|
}
|
|
else {
|
|
return 0;
|
|
}
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return C234;
|
|
}());
|