macro(match): add golden for type-guard minimal (no Box); script to validate; all pass

This commit is contained in:
Selfhosting Dev
2025-09-20 05:40:07 +09:00
parent 3ee54470a5
commit 7cd04e5942
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,7 @@
local x = "hello"
local r = match x {
StringBox(s) if s.length() > 3 => 1
_ => 0
}
print(r)