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

Ensure / test disallowed operators #8

Open
larryhastings opened this issue Apr 8, 2021 · 0 comments
Open

Ensure / test disallowed operators #8

larryhastings opened this issue Apr 8, 2021 · 0 comments

Comments

@larryhastings
Copy link
Owner

The following operators should be explicitly disallowed in annotation functions when co_annotation is active.

  • := (walrus),
  • yield and yield from, and
  • await.

Their use in an annotation should result in a compile-time error.

There should be tests for each of these in the standard library.

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