TypeScript/tests/baselines/reference/interfaceExtendingClass2.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

34 lines
614 B
TypeScript

//// [interfaceExtendingClass2.ts]
class Foo {
x: string;
y() { }
get Z() {
return 1;
}
[x: string]: Object;
}
interface I2 extends Foo { // error
a: {
toString: () => {
return 1;
};
}
//// [interfaceExtendingClass2.js]
var Foo = /** @class */ (function () {
function Foo() {
}
Foo.prototype.y = function () { };
Object.defineProperty(Foo.prototype, "Z", {
get: function () {
return 1;
},
enumerable: false,
configurable: true
});
return Foo;
}());
return 1;
;