✨ 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>
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
// 🌟 シンプルな自動変換テスト
|
|
// リテラル自動変換の基本動作確認
|
|
|
|
using nyashstd
|
|
|
|
static box Main {
|
|
init { console }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
|
|
// 🎉 革命的な書きやすさ - リテラル自動変換
|
|
local name = "World" // 自動でStringBox変換
|
|
local count = 5 // 自動でIntegerBox変換
|
|
local ready = true // 自動でBoolBox変換
|
|
|
|
me.console.log("🌟 簡単自動変換テスト:")
|
|
|
|
// ✅ nyashstdメソッドで文字列操作
|
|
local upperName = string.upper(name)
|
|
me.console.log("Hello " + upperName + "!")
|
|
|
|
// ✅ 整数操作
|
|
local countStr = integer.create(count)
|
|
me.console.log("カウント: " + countStr.toString())
|
|
|
|
// ✅ 真偽値表示
|
|
local readyStr = bool.create(ready)
|
|
me.console.log("準備完了: " + readyStr.toString())
|
|
|
|
// ✅ 配列操作
|
|
local items = array.create()
|
|
items.push(name)
|
|
items.push(countStr.toString())
|
|
|
|
me.console.log("配列サイズ: " + items.size().toString())
|
|
|
|
me.console.log("🎉 革命完了: Everything is Box + 使いやすさ!")
|
|
return "SUCCESS"
|
|
}
|
|
} |