Literal numbers are not resolved to supported type
See number-ternary-fail.kc
for( byte i: 0..40) {
SCREEN[i] = (i&1)?0:0x80;
}
See also bitwise-not-1.kc where number type resolving also fails
void main() {
const char* screen = 0x0400;
char b = ~0x10;
*screen = b;
}
File const-bool-0.kc
char bError = 7;
bError &= ~(0x10 | 0x20 | 0x40);
const char* screen = 0x0400;
*screen = bError;
Edited by Jesper Balman Gravgaard