This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 399755 - [bug] for in with array is resolving to String
Summary: [bug] for in with array is resolving to String
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VJET (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Early CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-01 14:14 EST by Justin Early CLA
Modified: 2017-04-11 15:12 EDT (History)
0 users

See Also:


Attachments
inferrence now works for for in statements (73.81 KB, image/png)
2013-03-07 18:44 EST, Justin Early CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Early CLA 2013-02-01 14:14:34 EST
var foobar = [new Date, new Date] ; 

// foobar is inferred as Date[]

for (var x in foobar) {
	
}

// x is inferred as String when it expected Date.
Comment 1 Justin Early CLA 2013-03-07 18:44:57 EST
Created attachment 228117 [details]
inferrence now works for for in statements
Comment 2 Justin Early CLA 2013-03-07 18:45:51 EST
See previous screenshot. Inference for forin and for statements now are working.