blob: b54da047889b7682787a47ba4b0eb518e23058b9 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: references from template to concrete
#evalPartial
-- in.cue --
res: [t]
t: [X=string]: {
a: c + b.str
b: str: string
c: "X"
}
t: x: {b: str: "DDDD"}
-- out/def --
res: [t]
t: {
{[X=string]: {
a: c + b.str, c: "X", b: {
str: string
}
}}
x: {
a: "XDDDD"
c: "X"
b: {
str: "DDDD"
}
}
}
-- out/export --
res: [{
x: {
a: "XDDDD"
c: "X"
b: {
str: "DDDD"
}
}
}]
t: {
x: {
a: "XDDDD"
c: "X"
b: {
str: "DDDD"
}
}
}
-- out/yaml --
res:
- x:
a: XDDDD
c: X
b:
str: DDDD
t:
x:
a: XDDDD
c: X
b:
str: DDDD
-- out/json --
{"res":[{"x":{"a":"XDDDD","c":"X","b":{"str":"DDDD"}}}],"t":{"x":{"a":"XDDDD","c":"X","b":{"str":"DDDD"}}}}
-- out/legacy-debug --
<0>{res: [<1>{[]: <2>(X: string)-><3>{a: (<3>.c + <3>.b.str), c: "X", b: <4>{str: string}}, x: <5>{a: "XDDDD", c: "X", b: <6>{str: "DDDD"}}}], t: <7>{[]: <2>(X: string)-><3>{a: (<3>.c + <3>.b.str), c: "X", b: <4>{str: string}}, x: <8>{a: "XDDDD", c: "X", b: <9>{str: "DDDD"}}}}
-- out/compile --
--- in.cue
{
res: [
0;t〉,
]
t: {
[string]: {
a: (〈0;c + 0;b〉.str)
b: {
str: string
}
c: "X"
}
}
t: {
x: {
b: {
str: "DDDD"
}
}
}
}
-- out/eval --
(struct){
res: (#list){
0: (struct){
x: (struct){
b: (struct){
str: (string){ "DDDD" }
}
a: (string){ "XDDDD" }
c: (string){ "X" }
}
}
}
t: (struct){
x: (struct){
b: (struct){
str: (string){ "DDDD" }
}
a: (string){ "XDDDD" }
c: (string){ "X" }
}
}
}