Bug 263465 - wrong assumption about return type
Summary: wrong assumption about return type
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.5   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2009-02-03 10:02 EST by Michael Schneider CLA
Modified: 2010-03-03 11:17 EST (History)
0 users

See Also:
thatnitind: review+


Attachments
screenshot (8.72 KB, image/png)
2009-02-03 10:02 EST, Michael Schneider CLA
no flags Details
Fixes the invalid error message for unknown return types (1.09 KB, patch)
2009-04-01 11:36 EDT, Chris Jaun CLA
thatnitind: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.