a resumable function as a struct field var causes an error "struct expression not at top level"
mongibellili opened this issue · 0 comments
mongibellili commented
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?