2014-07-13 01:04:16 +02:00
|
|
|
//// [classWithOverloadImplementationOfWrongName.ts]
|
|
|
|
class C {
|
|
|
|
foo(): string;
|
|
|
|
foo(x): number;
|
|
|
|
bar(x): any { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [classWithOverloadImplementationOfWrongName.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-03-26 21:46:35 +01:00
|
|
|
C.prototype.bar = function (x) { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return C;
|
|
|
|
})();
|