added method calls

This commit is contained in:
Andrew Segavac
2021-06-26 17:47:52 -06:00
parent 142497573f
commit 75a042741e
6 changed files with 60 additions and 32 deletions

View File

@@ -45,6 +45,10 @@ fn get_user_id(): U64 {
return user.id;
}
fn use_method(user: User): U64 {
return user.get_id();
}
type User struct {
id: U64,
}