Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codegen: test assignment of functions/methods and later user of it #109

Open
delasy opened this issue Oct 10, 2024 · 0 comments
Open

codegen: test assignment of functions/methods and later user of it #109

delasy opened this issue Oct 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@delasy
Copy link
Member

delasy commented Oct 10, 2024

obj Test {
  fn method (a: int) str {
    return a.str()
  }
}

t := Test{}
d := t.method
e := d(10)
print(d)
@delasy delasy added the enhancement New feature or request label Oct 10, 2024
@delasy delasy added this to the v1.0 milestone Oct 10, 2024
@delasy delasy self-assigned this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant