Files
hakorune/local_tests/test_simple_arc_fix.nyash
Moe Charm ef7a0de3b0 feat: Prepare for code modularization and cleanup
- Archive old documentation and test files to `docs/archive/` and `local_tests/`.
- Remove various temporary and old files from the project root.
- Add `nekocode-rust` analysis tool and its output files (`nekocode/`, `.nekocode_sessions/`, `analysis.json`).
- Minor updates to `apps/chip8_nyash/chip8_emulator.nyash` and `local_tests` files.

This commit cleans up the repository and sets the stage for further code modularization efforts, particularly in the `src/interpreter` and `src/parser` modules, based on recent analysis.
2025-08-16 01:30:39 +09:00

24 lines
613 B
Plaintext

// Simple test case to verify Arc sharing fix
static box Main {
init { counter }
main() {
me.counter = new IntegerBox(42)
print("=== Initial value ===")
print("counter: " + me.counter.to_string())
// Test if getting the same field returns the same object
local temp1
temp1 = me.counter
local temp2
temp2 = me.counter
print("=== Testing shared reference ===")
print("temp1: " + temp1.to_string())
print("temp2: " + temp2.to_string())
return me.counter
}
}