Files
hakorune/local_tests/test_static_box_method.hako

20 lines
400 B
Plaintext

// Test static box method calls
static box TestStatic {
init { value }
main() {
print("Static main called!")
return "Success"
}
greet(name) {
return "Hello, " + name + "!"
}
}
// Test direct static method calls
local result = TestStatic.main()
print("Result: " + result)
local greeting = TestStatic.greet("Nyash")
print("Greeting: " + greeting)