Bug 263465

Summary: wrong assumption about return type
Product: [WebTools] JSDT Reporter: Michael Schneider <michschn>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 Keywords: contributed
Version: 3.1Flags: thatnitind: review+
Target Milestone: 3.0.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot
none
Fixes the invalid error message for unknown return types thatnitind: iplog+

Description Michael Schneider CLA 2009-02-03 10:02:12 EST
Eclipse Build ID: I20090129-1800
WTP Build ID: 3.1M4-20081219210304
Dojo Plugins: 1.0.0.v20080508-1557

1) create a javascript file, paste the following code:
function myFunction() {
	return {
		v: function() {
			// return nothing
		}
	};
};

observe: there's an error decoration indicating "This function must return a result of type any". This is not expected. see attached screenshot
Comment 1 Michael Schneider CLA 2009-02-03 10:02:36 EST
Created attachment 124549 [details]
screenshot
Comment 2 Chris Jaun CLA 2009-04-01 11:36:12 EDT
Created attachment 130577 [details]
Fixes the invalid error message for unknown return types
Comment 3 Chris Jaun CLA 2009-04-01 11:36:31 EDT
Can be fixed in 3.1 and 3.0.5.
Comment 4 Nitin Dahyabhai CLA 2009-04-02 01:59:23 EDT
Applied to 3.1m7
Comment 5 Nitin Dahyabhai CLA 2009-04-13 15:28:09 EDT
Applied to 3.0.5.  Thanks, Chris.