blob: 6abbe4a00d3f51361c6566be4e6ba7bf89bc6a45 [file] [log] [blame]
-- in.cue --
#TopLevel: [name=string]: {
path: string
content: string
}
#Mid: #TopLevel & {
myoutput: path: "/output"
}
val: #Mid & {} & {myoutput: {content: "foo"}} // Should work.
-- out/eval --
(struct){
#TopLevel: (#struct){
}
#Mid: (#struct){
myoutput: (#struct){
path: (string){ "/output" }
content: (string){ string }
}
}
val: (#struct){
myoutput: (#struct){
path: (string){ "/output" }
content: (string){ "foo" }
}
}
}
-- out/compile --
--- in.cue
{
#TopLevel: {
[string]: {
path: string
content: string
}
}
#Mid: (〈0;#TopLevel〉 & {
myoutput: {
path: "/output"
}
})
val: ((〈0;#Mid & {}) & {
myoutput: {
content: "foo"
}
})
}