| Summary: | Type mismatch on myString = my2Dimension[2][2] when my2Dimension string[][] = [["State"],["Carolina","Duke"]]; | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas, mheitz |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Brenda, try changing my2Dimension[2,2] to my2Dimension[2][2] and see if it works. I saw a similar bug go by, and Tim said we're only going to allow one subscript per set of square brackets. I don't know if there's already a defect on validation not rejecting that expression. I changed it to my2Dimension[2][2] and got: org.eclipse.edt.javart.AnyBoxedObject cannot be cast to egl.lang.EglList Now I get: Type mismatch: cannot convert from EglList<EglAny> to EglList<EglList<String>> fixed Verified in 20110921 build. |
20110916 build Debug or run generated: program javaError type BasicProgram {} my2Dimension string[][] = [["State"],["Carolina","Duke"]]; myString string; function main() myString = my2Dimension[2,2]; sysLib.writeStdout(myString); end end Get: egl.lang.TypeCastException