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

a resumable function as a struct field var causes an error "struct expression not at top level" #66

Closed
mongibellili opened this issue May 12, 2023 · 0 comments

Comments

@mongibellili
Copy link

mongibellili commented May 12, 2023

Greetings,
A resumable function , when put inside a function, causes the error "struct expression not at top level" . because "@Resumable transforms the function block to a larger expression that includes a mutable struct block. struct blocks can only be defined in the global scope" . can putting a resumable function inside another function be allowed in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant