31 lines
581 B
TypeScript
31 lines
581 B
TypeScript
//// [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;
|
|
})();
|