PlutoLang / Pluto

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

Infinite loop with nested switch expressions #899

Closed Sainan closed 2 days ago

Sainan commented 3 days ago
print(
    switch 0 do
        default -> switch 1 do
            default -> nil
        end
    end
)

It seems that if the key being looked for is missing, it loops infinitely.