Initial investigation: Identified core Box registration issues

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-12 08:12:26 +00:00
parent a2c8f84de5
commit dadb5afcff
7 changed files with 94 additions and 16 deletions

View File

@ -0,0 +1,22 @@
// Test FloatBox Issues (Problem 4)
// This should demonstrate the FloatBox value access issues
local console = new ConsoleBox()
console.log("=== Testing FloatBox Issues ===")
// Test FloatBox creation (this should work)
console.log("Creating FloatBox...")
local float = new FloatBox(3.14)
console.log("FloatBox created successfully")
// Test toString method (this should work)
console.log("Testing toString...")
local float_str = float.toString()
console.log("FloatBox toString: " + float_str)
// Test value field access (this should fail)
console.log("Testing value field access...")
// local value = float.value
// console.log("FloatBox value: " + value)
console.log("FloatBox test complete!")