TypeScript/tests/baselines/reference/genericGetter2.js
Pathurs 5c85febb0c
Fix Get/Set being enumerable (#32264)
* Fix Get/Set being enumerable

fixes #3610

* fix tests

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-02-27 14:08:20 -08:00

29 lines
508 B
TypeScript

//// [genericGetter2.ts]
class A<T> { }
class C<T> {
data: A<T>;
get x(): A {
return this.data;
}
}
//// [genericGetter2.js]
var A = /** @class */ (function () {
function A() {
}
return A;
}());
var C = /** @class */ (function () {
function C() {
}
Object.defineProperty(C.prototype, "x", {
get: function () {
return this.data;
},
enumerable: false,
configurable: true
});
return C;
}());