Files
hakorune/tests/development/test_intent_field_access.hako

23 lines
712 B
Plaintext
Raw Normal View History

// Test IntentBox Field Access Issues (Problem 2)
// This should demonstrate the field access failures described
local console = new ConsoleBox()
console.log("=== Testing IntentBox Field Access ===")
// Test IntentBox creation (this should work)
console.log("Creating IntentBox...")
local intent = new IntentBox("test", "Hello")
console.log("IntentBox created successfully")
// Test field access methods (these should be the issue)
console.log("Testing field access...")
// Try getName method
local name = intent.getName()
console.log("Intent name: " + name)
// Try getPayload method
local payload = intent.getPayload()
console.log("Intent payload: " + payload)
console.log("Field access test complete!")