-
OK, tried this:
Expected Y to be equal to X? but got:
Used Cue 0.4.0 See also: https://cuelang.org/play/?id=HT8kx7IjfU8#cue@export@cue |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
To me this mainly feels like a formatting bug, when X: {
a: number
b: a + 1
c: b + 2
d: a | 2
}
Y: {
for k,v in X { "\(k)": v }
}
X: a: 4 results in
|
Beta Was this translation helpful? Give feedback.
-
Have you tried both examples with the cue CLI? It could be specific to the playground |
Beta Was this translation helpful? Give feedback.
-
btw. i'm ok with CUE to return bottom if the value isn't concrete (although I would rather have a copy of the expression). But returning |
Beta Was this translation helpful? Give feedback.
-
This is also weird, but with eager evaluation understandable
Result:
shouldn't Xa and Ya be the same? |
Beta Was this translation helpful? Give feedback.
btw. i'm ok with CUE to return bottom if the value isn't concrete (although I would rather have a copy of the expression). But returning
v
is a bug I think.