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

Bug 357833

Summary: Remove special cases for compatibility with array literals
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-09-15 12:09:50 EDT
Due to the recent set of language changes, "x1 int[] = [1, 2, 3];" is no longer
valid.  It's an assignment of a smallint array to an int array, and they're not
compatible types.  We need a validation error on the statement.

We shouldn't have special cases to allow things for array literals that aren't allowed for array variables of the same type.
Comment 1 Jeff Douglas CLA 2011-10-01 15:07:25 EDT
I modified reorg code to take care of this, so now it is supported
Comment 2 Matt Heitz CLA 2011-10-04 15:30:38 EDT
Verified.