var something:String = function (arg:String):String { return arg; }("foo");
If you define a function like this and then hover over the call to it the return type is "error":
var func:Function = function ():String { return "foo"; }; func();
So hovering over func(); gives the tooltip: "func : Function - testing.FuncTest.FuncTest(void) : error"