Files
hakorune/apps/tests/shortcircuit_and_phi_skip.hako

11 lines
258 B
Plaintext
Raw Normal View History

2025-09-15 22:14:42 +09:00
static box Main {
main(args) {
local x = 0
// Phase 152-A: Use grouped assignment in expression context
local result = ((x = x + 1) < 0) && ((x = x + 1) < 0)
2025-09-15 22:14:42 +09:00
// LHS が false → RHS は評価されず x は 1 のまま
return x
}
}