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

Error Message for Bitwise OR references boolean AND "&&" #376

Closed
martinei opened this issue May 14, 2020 · 1 comment
Closed

Error Message for Bitwise OR references boolean AND "&&" #376

martinei opened this issue May 14, 2020 · 1 comment

Comments

@martinei
Copy link

martinei commented May 14, 2020

HCL Template

foo = a | b

Expected behavior

Get an error Message:

Bitwise operators are not supported. Did you mean boolean OR ("||")?

Actual behavior

Got an error message

Bitwise operators are not supported. Did you mean boolean OR ("&&")?

Steps to reproduce

Stumbled upon this one in terraform.
Have a look at https://github.com/hashicorp/hcl/blob/hcl2/hclsyntax/token.go#L205

@martinei martinei changed the title Error Message for Bitwise OR references boolean and Error Message for Bitwise OR references boolean AND "&&" May 14, 2020
minamijoyo added a commit to minamijoyo/hcl that referenced this issue May 21, 2020
@alisdair
Copy link
Member

Fixed in #380

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

2 participants