mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
aef211e5f3
More consistent implicit address-of handling if array literals contain by-ref identifiers (such as subroutine names)
12 lines
371 B
Lua
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
|
|
}
|
|
}
|