// 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!")