Closed XmiliaH closed 1 month ago
The switch parser sometimes uses parts of the case value and also includes it in the case body.
local tab = { print=function(...) print("TabPrint", ...) end } switch 1 do case 2: break case true?1:tab: print("OK") end
In this case the tab: is in the case value, but the skip over the case will end at 1: and so tab: is also included in the switch case body.
tab:
1:
The switch parser sometimes uses parts of the case value and also includes it in the case body.
In this case the
tab:
is in the case value, but the skip over the case will end at1:
and sotab:
is also included in the switch case body.