2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/returnStatement1.ts ===
|
|
|
|
function f() {
|
2014-08-28 21:52:44 +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
|
2014-08-15 23:33:16 +02:00
|
|
|
>s : any
|
|
|
|
|
|
|
|
var x = s;
|
|
|
|
>x : any
|
|
|
|
>s : any
|
|
|
|
|
|
|
|
};
|
|
|
|
("harmless extra line");
|
|
|
|
>("harmless extra line") : string
|
|
|
|
}
|