TypeScript/tests/baselines/reference/implicitAnyDeclareFunctionWithoutFormalType2.js
2014-08-14 06:21:30 -07:00

41 lines
773 B
JavaScript

//// [implicitAnyDeclareFunctionWithoutFormalType2.ts]
// generates function fn1(): number;
function fn1() {
var x: number;
return x;
}
// generates function fn2(): any;
function fn2(): any {
var x: any;
return x;
}
// generates function fn3();
function fn3() {
var x: any;
return x;
}
//// [implicitAnyDeclareFunctionWithoutFormalType2.js]
// generates function fn1(): number;
function fn1() {
var x;
return x;
}
// generates function fn2(): any;
function fn2() {
var x;
return x;
}
// generates function fn3();
function fn3() {
var x;
return x;
}
//// [implicitAnyDeclareFunctionWithoutFormalType2.d.ts]
declare function fn1(): number;
declare function fn2(): any;
declare function fn3(): any;