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

Functions as parameters don't work #136

Closed
iafisher opened this issue Sep 17, 2021 · 0 comments
Closed

Functions as parameters don't work #136

iafisher opened this issue Sep 17, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@iafisher
Copy link
Owner

func callback_hell(callback: func(string)) {
  callback("a")
}

func print_string(x: string) {
  print("PRINTING: " ++ x)
}

func main() {
  callback_hell(print_string)
}

Error:

Internal error: function "" not found
@iafisher iafisher added the bug Something isn't working label Sep 17, 2021
@iafisher iafisher added this to To do in Venice 0.1.0 - Core language via automation Sep 17, 2021
Venice 0.1.0 - Core language automation moved this from To do to Done Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant