2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/returnStatement1.ts ===
|
|
|
|
function f() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>f : () => (s: any) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return function (s) {
|
2014-08-22 03:39:46 +02:00
|
|
|
>function (s) { var x = s; } : (s: any) => void
|
2015-04-16 01:44:20 +02:00
|
|
|
>s : any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = s;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : any
|
|
|
|
>s : any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
("harmless extra line");
|
|
|
|
>("harmless extra line") : string
|
2015-04-13 21:36:11 +02:00
|
|
|
>"harmless extra line" : string
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|