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

Walrus operator regression with # operator #830

Closed Sainan closed 5 months ago

Sainan commented 5 months ago

This was valid in 0.9.0 but is no longer valid in 0.9.1:

local function getstr()
    return "hello"
end
if #(str := getstr()) == 5 then
    print(str)
end