✨ 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>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
// 🌟 文字列リテラル自動変換テスト
|
|
// "Hello" → new StringBox("Hello")
|
|
|
|
static box Main {
|
|
init { console }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
|
|
// ✅ 文字列リテラル自動変換テスト
|
|
local text = "Hello World"
|
|
me.console.log("文字列自動変換テスト:")
|
|
me.console.log(text)
|
|
|
|
// ✅ 整数リテラル自動変換テスト
|
|
local number = 42
|
|
me.console.log("整数自動変換テスト:")
|
|
me.console.log(number)
|
|
|
|
// ✅ 真偽値リテラル自動変換テスト
|
|
local flag = true
|
|
me.console.log("真偽値自動変換テスト:")
|
|
me.console.log(flag)
|
|
|
|
// ✅ 浮動小数点リテラル自動変換テスト
|
|
local pi = 3.14
|
|
me.console.log("浮動小数点自動変換テスト:")
|
|
me.console.log(pi)
|
|
|
|
me.console.log("🎉 リテラル自動変換テスト完了!")
|
|
return "SUCCESS"
|
|
}
|
|
} |