prog8/examples/test.p8
Irmen de Jong aef211e5f3 stricter array literal element type handling (number,bool,address-of).
More consistent implicit address-of handling if array literals contain by-ref identifiers (such as subroutine names)
2024-10-13 17:46:41 +02:00

12 lines
371 B
Lua

main {
sub start() {
label:
str @shared name = "name"
ubyte @shared bytevar
uword[] @shared array = [name, label, start, main, 9999]
uword[] @shared array2 = [&name, &label, &start, &main, 9999]
uword[] @shared array3 = [cx16.r0] ; error, is variables
uword[] @shared array4 = [bytevar] ; error, is variables
}
}