Replies: 3 comments 1 reply
-
AFAIU, this is working "as expected" but is effectively the same problem of a list type defaulting to |
Beta Was this translation helpful? Give feedback.
-
It is working as expected because, as documented, a struct is always considered concrete. As per the doc:
|
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#884. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
What version of CUE are you using (
cue version
)?0.3.0
What did you do?
Called
cue.Value.IsConcrete()
via the Go API and got unexpected results. If this does indeed seem like a bug, then I can create a reproducer.In the example below, calling
IsConcrete()
forex.bar.
reports true, is this expected?What did you expect to see?
ex.bar.IsConcrete()
returning falseWhat did you see instead?
ex.bar.IsConcrete()
returning trueBeta Was this translation helpful? Give feedback.
All reactions