Community
Participate
Working Groups
Build Identifier: 20110901 Debug or run the following program. Get message: java.lang.Short cannot be cast to java.lang.Integer program cast type BasicProgram {} myINTList INT[] = [1,2,3]; myString string; function main() myString = myINTList[3]; sysLib.writeStdout(myString); end end Reproducible: Always
*** This bug has been marked as a duplicate of bug 355014 ***
The problem is that the array literal type is being altered to esmallint even though it's an array being assigned to int. The logic needs to override this somehow. Needs more work.
Changing from closed to resolved so I can test it when 355014 is fixed.
Verified in 20110927 build.