Skip to content

reference to conditional fields are not resolve properly (maybe?) #2563

Closed Answered by myitcv
wylswz asked this question in Q&A
Discussion options

You must be logged in to vote

CUE is lexically scoped using blocks, which means that the reference to a in res: a resolves to the top-level a : *[] | [...] and not the one contained within the if comprehension.

Depends what you are after here: https://tip.cuelang.org/play/?id=nbnzUOsJafS#cue@export@cue

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wylswz
Comment options

Answer selected by wylswz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants