TypeScript/tests/baselines/reference/anyIdenticalToItself.js
2015-02-06 18:45:09 -08:00

32 lines
581 B
JavaScript

//// [anyIdenticalToItself.ts]
function foo(x: any);
function foo(x: any);
function foo(x: any, y: number) { }
class C {
get X(): any {
var y: any;
return y;
}
set X(v: any) {
}
}
//// [anyIdenticalToItself.js]
function foo(x, y) { }
var C = (function () {
function C() {
}
Object.defineProperty(C.prototype, "X", {
get: function () {
var y;
return y;
},
set: function (v) {
},
enumerable: true,
configurable: true
});
return C;
})();