51 lines
833 B
TypeScript
51 lines
833 B
TypeScript
//// [implicitAnyAnyReturningFunction.ts]
|
|
function A() {
|
|
return <any>"";
|
|
}
|
|
|
|
function B() {
|
|
var someLocal: any = {};
|
|
return someLocal;
|
|
}
|
|
|
|
class C {
|
|
public A() {
|
|
return <any>"";
|
|
}
|
|
|
|
public B() {
|
|
var someLocal: any = {};
|
|
return someLocal;
|
|
}
|
|
}
|
|
|
|
|
|
//// [implicitAnyAnyReturningFunction.js]
|
|
function A() {
|
|
return "";
|
|
}
|
|
function B() {
|
|
var someLocal = {};
|
|
return someLocal;
|
|
}
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.prototype.A = function () {
|
|
return "";
|
|
};
|
|
C.prototype.B = function () {
|
|
var someLocal = {};
|
|
return someLocal;
|
|
};
|
|
return C;
|
|
})();
|
|
|
|
|
|
//// [implicitAnyAnyReturningFunction.d.ts]
|
|
declare function A(): any;
|
|
declare function B(): any;
|
|
declare class C {
|
|
A(): any;
|
|
B(): any;
|
|
}
|