In resent SDKs some bugs were fixed
- Fix type casting with certain l-values
- Fix a bug where the if / else if block could clear member typing in the subsequent else / else if blocks
-...
but I can still see errors in ERA probably the same problems (not on my watch/sim, not for all users it ) - with arrays son right size
example 1
cons IC_NO_DATA = 86,//V
sepecial_icon =3;
....
var icon = IC_NO_DATA,
font = globalFont; // loaded on start
...
if(...)
{
// tableOFdata is an array with mixed type elements - string, num etc
// tableOFdata[sepecial_icon] keeps integer < 255
icon = tableOFdata[sepecial_icon];
font = fontIcon;// // fontIcon is loaded also on start
}
..
dc.drawText(IconX, IconY, font, icon.toChar(), 5); //Error Name: Invalid Value
example 2
var t1 = 12, t2 = "abc";
...
//reusing of t1/t2
t1 = [1224, 345];
if(...)
{
t2 = t1[0]; //Error Name: Invalid Value
}