✨ 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>
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
// 🌟 nyashstd + 文字列リテラル自動変換テスト
|
|
// Everything is Box哲学 + 使いやすさ向上の実証
|
|
|
|
using nyashstd
|
|
|
|
static box Main {
|
|
init { console }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
|
|
// 🎉 革命的な書きやすさ - リテラル自動変換 + nyashstd
|
|
local name = "Alice" // 自動でStringBox変換
|
|
local age = 25 // 自動でIntegerBox変換
|
|
local active = true // 自動でBoolBox変換
|
|
local score = 98.5 // 自動でFloatBox変換
|
|
|
|
me.console.log("🌟 nyashstd + 自動変換テスト:")
|
|
|
|
// ✅ nyashstdメソッドで文字列操作
|
|
local upperName = string.upper(name)
|
|
me.console.log("名前(大文字): " + upperName)
|
|
|
|
// ✅ 数値との組み合わせ
|
|
local doubleAge = integer.create(age.toString() + "0") // 250
|
|
me.console.log("年齢x10: " + doubleAge.toString())
|
|
|
|
// ✅ 配列作成と追加
|
|
local items = array.create()
|
|
items.push(name)
|
|
items.push(age.toString())
|
|
items.push(active.toString())
|
|
|
|
me.console.log("配列サイズ: " + items.size().toString())
|
|
|
|
me.console.log("🎉 Everything is Box + 使いやすさ両立成功!")
|
|
return "REVOLUTION_COMPLETE"
|
|
}
|
|
} |