TypeScript/tests/cases/compiler/implicitAnyDeclareFunctionWithoutFormalType2.ts

18 lines
316 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//@noimplicitany: true
//@declaration: true
// 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;
}