2014-07-13 01:04:16 +02:00
|
|
|
//// [functionReturn.ts]
|
|
|
|
function f0(): void { }
|
|
|
|
function f1() {
|
|
|
|
var n: any = f0();
|
|
|
|
}
|
|
|
|
function f2(): any { }
|
|
|
|
function f3(): string { return; }
|
|
|
|
function f4(): string {
|
|
|
|
return '';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
function f5(): string {
|
|
|
|
return '';
|
|
|
|
return undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [functionReturn.js]
|
2015-02-07 03:45:09 +01:00
|
|
|
function f0() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
function f1() {
|
|
|
|
var n = f0();
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
function f2() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
function f3() {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
function f4() {
|
|
|
|
return '';
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
function f5() {
|
|
|
|
return '';
|
|
|
|
return undefined;
|
|
|
|
}
|