buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.2k stars 34 forks source link

Yield not (can't?) type checked #75

Closed giann closed 2 years ago

giann commented 2 years ago

The fiber implementation allow for a yield to occur at multiple function call depth. Right now the parser/codegen assume the yield type is the one of the wrapped function: