aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/test/switch_spec.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-03-26 12:02:35 +0800
committerLi Jin <dragon-fly@qq.com>2026-03-26 12:02:35 +0800
commitdf262171918e6ecc241bff6cfcf81b097ec00533 (patch)
tree336203cffe33145610b3510601f39d9427e4b16b /spec/outputs/test/switch_spec.lua
parentad0cd3a39d5d77ec32d2f203c7258f727a06ba6e (diff)
downloadyuescript-df262171918e6ecc241bff6cfcf81b097ec00533.tar.gz
yuescript-df262171918e6ecc241bff6cfcf81b097ec00533.tar.bz2
yuescript-df262171918e6ecc241bff6cfcf81b097ec00533.zip
fix: empty table pattern in switch generates valid Lua code
- Add EmptyTableType enum to distinguish [] and {} patterns - [] (empty list) generates '#x == 0' check - {} (empty table) generates 'next(x) == nil' check - Fixes issue #249
Diffstat (limited to 'spec/outputs/test/switch_spec.lua')
0 files changed, 0 insertions, 0 deletions