| Summary: | Can't assign empty array literal to array | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Justin Spadea <jspadea> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Justin Spadea
The problem is because this statement: i int[] = []; goes into the ArrayLiteralTemplate and gets the type of the array, which has no entries, so it is defaulting to Any. I think the only way of solving this is to check for this condition in Reorg code and assign the type to the array, using the assignment LHS as the type. fixed Verified |