Community
Participate
Working Groups
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
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.