Files
hakorune/apps/tests/shortcircuit_or_phi_skip.nyash

10 lines
178 B
Plaintext
Raw Normal View History

2025-09-15 22:14:42 +09:00
static box Main {
main(args) {
local x = 0
((x = x + 1) >= 0) || ((x = x + 1) < 0)
// LHS が true → RHS は評価されず x は 1 のまま
return x
}
}