PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org
MIT License
367 stars 22 forks source link

Read of uninitialized variable #835

Closed Sainan closed 5 months ago

Sainan commented 5 months ago
for {} as _ do end
if (false and (a := true) and (b := true) and (c := true) and (d := true)) or true then
    print(a, b, c, d)
end

Also the error message should elaborate as to why the walrus operator is not valid.