23 lines
712 B
Plaintext
23 lines
712 B
Plaintext
// 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!") |