Files
hakorune/tests/development/test_from_simple.nyash

25 lines
351 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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())