We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
do*
At the top level:
-> do* yield foo yield bar // vvv function () { return (function* () { { yield foo; yield bar; } })(); }
In a method:
{ f() do* yield foo yield bar } // vvv { *f() { (function* () { { yield foo; yield bar; } })(); } }
I think the latter is a bug, since it never returns or yields anything.
The text was updated successfully, but these errors were encountered:
The latter example is also missing a return, but probably because returns aren't implicit in generators.
return
This bug also causes getters to fail to transpile with error "Getters and setters cannot be generators":
{ get f() do* yield foo yield bar }
So we might add this to tests once fixed.
Sorry, something went wrong.
edemaine
No branches or pull requests
At the top level:
In a method:
I think the latter is a bug, since it never returns or yields anything.
The text was updated successfully, but these errors were encountered: