Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327844

Summary: collect and reject does not have the correct type calculator
Product: z_Archived Reporter: Henrik Lindberg <henrik.lindberg>
Component: b3Assignee: Project Inbox <b3.engine-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Henrik Lindberg CLA 2010-10-14 20:26:21 EDT
collect and reject does not have the correct type calculator and thus something like:

var a = 0;
(0..3).collect(x| a += x);

flags an error for += since x is believed to be an Object (not an Integer) which can be inferred.

This is because the collect (and reject) function does not have a correct type calculator.