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

Value.HasElement does not fully handle unknowns #7

Open
apparentlymart opened this issue Nov 15, 2018 · 0 comments
Open

Value.HasElement does not fully handle unknowns #7

apparentlymart opened this issue Nov 15, 2018 · 0 comments
Labels
bug main The main "cty" package

Comments

@apparentlymart
Copy link
Collaborator

The HasElement method currently handles two situations improperly:

  • If the given value is not wholly known then the result must always be cty.UnknownVal(cty.Bool).
  • If the given value is wholly known and not in the set but there is at least one partially-unknown value in the set then the result must always be cty.UnknownVal(cty.Bool).
@apparentlymart apparentlymart added bug main The main "cty" package labels Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug main The main "cty" package
Projects
None yet
Development

No branches or pull requests

1 participant