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
Originally opened by @myitcv in cuelang/cue#729
cue version
$ cue version cue version +fdccfbc5 linux/amd64
Yes
exec cue eval -- x.cue -- package x _#cond: true if _#cond {5}
5
[stderr] conflicting values 5 and {_#cond(:x):true,if _#cond(:x) {5}} (mismatched types int and struct): ./x.cue:1:1 ./x.cue:5:12
The text was updated successfully, but these errors were encountered:
Original reply by @mpvl in cuelang/cue#729 (comment)
FTR: this works:
_#cond: true _ if _#cond {5}
But so does this:
{5}
In the spirit of the spec, at least, I would say the latter is correct. So this issue would be correct to call this a bug.
Also FTR: add this test case:
_#cond: true if _#cond {5} "v"
It currently crashes.
Sorry, something went wrong.
No branches or pull requests
Originally opened by @myitcv in cuelang/cue#729
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: