20 lines
356 B
TypeScript
20 lines
356 B
TypeScript
//// [getterMissingReturnError.ts]
|
|
class test {
|
|
public get p2(){
|
|
|
|
}
|
|
}
|
|
|
|
|
|
//// [getterMissingReturnError.js]
|
|
var test = (function () {
|
|
function test() {
|
|
}
|
|
Object.defineProperty(test.prototype, "p2", {
|
|
get: function () {
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return test;
|
|
})();
|