blob: e23c6f05f04d09e4613089b1d9f2658608c89850 [file] [log] [blame]
-- in.cue --
#A: {
a: string
}
#B: {
b: string
}
#X: #A | #B
l: [...#X]
l: [
{b: "bar"}
]
-- out/eval --
(struct){
#A: (#struct){
a: (string){ string }
}
#B: (#struct){
b: (string){ string }
}
#X: (struct){ |((#struct){
a: (string){ string }
}, (#struct){
b: (string){ string }
}) }
l: (#list){
0: (#struct){
b: (string){ "bar" }
}
}
}
-- out/compile --
--- in.cue
{
#A: {
a: string
}
#B: {
b: string
}
#X: (〈0;#A〉|〈0;#B〉)
l: [
...〈0;#X〉,
]
l: [
{
b: "bar"
},
]
}