Issue Details (XML | Word | Printable)

Key: FDT-662
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: FDT Team
Reporter: Gary Burgess
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FDT

Return type of anonymous functions is problematic

Created: 01/Sep/09 05:51 PM   Updated: 22/Jun/12 06:20 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.5 beta 1
Security Level: public

Time Tracking:
Not Specified

Environment: Eclipse 3.5, FDT 3.5.0.1021


 Description  « Hide
FDT thinks functions always return Object if an anonymous function is created and called at the same time:
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"



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.