✨ Major code quality improvements: • Fixed all unused variable and parameter warnings • Added appropriate #[allow(dead_code)] annotations • Renamed constants to follow Rust naming conventions • Achieved completely warning-free codebase 🔧 Key changes: • Parser expressions: Fixed arg_count and statement_count usage • MIR modules: Added dead_code allows for future-use code • Backend modules: Prefixed unused parameters with underscore • Effect constants: Renamed 'read' to 'READ_ALIAS' for conventions 📊 Results: • Before: 106 warnings (noisy build output) • After: 0 warnings (clean build) • Improvement: 100% warning reduction 🎯 This continues the bug fixing initiative "つづきのしゅうせいおねがいにゃ!" from Phase 9.75i (birth() fixes, static methods, Copilot apps). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
590 B
Plaintext
29 lines
590 B
Plaintext
// テスト: 現代的Nyashコンストラクタ構文確認
|
|
|
|
box SimpleBox {
|
|
init { value }
|
|
|
|
birth(val) {
|
|
me.value = val
|
|
print("SimpleBox生誕: " + val)
|
|
}
|
|
|
|
getValue() {
|
|
return me.value
|
|
}
|
|
}
|
|
|
|
static box Main {
|
|
init { console }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
me.console.log("🧪 コンストラクタ構文テスト")
|
|
|
|
local box1 = new SimpleBox("test")
|
|
local result = box1.getValue()
|
|
me.console.log("結果: " + result)
|
|
|
|
return "TEST_COMPLETE"
|
|
}
|
|
} |