Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357833 - Remove special cases for compatibility with array literals
Summary: Remove special cases for compatibility with array literals
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 12:09 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

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