Method calls from within method from same object

This commit is contained in:
Nathan Braswell
2016-01-24 01:49:14 -05:00
parent c022758b9c
commit 105a969a00
3 changed files with 15 additions and 5 deletions

View File

@@ -3,8 +3,9 @@ import to_import: simple_print, a, b, string_id
obj Something (ObjectTrait) {
var member: int
fun method(a: int):int {
return 5+a+member
return 5+a+member + other_method()
}
fun other_method(): int return 7;
fun return_this(): *Something {
return this;
}