Files
hakorune/tests/development/test_from_simple.nyash

25 lines
351 B
Plaintext
Raw Normal View History

// from構文のみのテストまず式として
box Parent {
init { value }
getValue() {
return "Parent value"
}
}
box Child from Parent {
init { }
test() {
local result
result = from Parent.getValue()
return result
}
}
local c
c = new Child()
print("Result: " + c.test())