Files
hakorune/apps/tests/phase100_pinned_local_receiver_min.hako
nyash-codex 82806f8f90 test: Phase 100 pinned local receiver fixture + smoke
- Add apps/tests/phase100_pinned_local_receiver_min.hako
  * Dynamic string construction with pinned receiver usage
  * Demonstrates loop-outer local as method receiver
- Add tools/smokes/v2/profiles/integration/apps/phase100_pinned_local_receiver_vm.sh
  * HAKO_JOINIR_STRICT=1 validation
  * Numeric output extraction for log-resistant testing
- Regression: phase96 and phase94 smoke tests pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-17 05:43:44 +09:00

22 lines
577 B
Plaintext

// Phase 100 P1-5-1: Pinned Local Receiver Fixture
// Tests that loop-outer dynamic string can be used as receiver inside loop
static box Main {
main() {
// Dynamic string construction (loop-outer)
local s
s = "a" + "b" + "c"
// Loop using s as receiver (requires Pinned capture)
// Note: loop(i < 1) currently runs 3 iterations (0,1,2) - see loop semantics
local i
i = 0
loop(i < 1) {
local ch
ch = s.substring(i, i + 1)
print(i)
i = i + 1
}
}
}