blob: 18a63e8835f48104ba3860d0219fc4f20981e169 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: reference to root
#evalPartial
-- in.cue --
a: {b: int}
c: a & {
b: 100
d: a.b + 3 // do not resolve as c != a.
}
x: {
b: int
c: b + 5
}
y: x & {
b: 100
// c should resolve to 105
}
v: {
b: int
c: v.b + 5 // reference starting from copied node.
}
w: v & {b: 100}
wp: v & {b: 100}
-- out/def --
x: {
b: int
c: b + 5
}
y: x & {
b: 100
}
a: {
b: int
}
c: a & {
b: 100
d: a.b + 3
}
v: {
b: int
c: v.b + 5
}
w: v & {
b: 100
}
wp: v & {
b: 100
}
-- out/legacy-debug --
<0>{x: <1>{b: int, c: (<2>.b + 5)}, y: <3>{b: 100, c: 105}, a: <4>{b: int}, c: <5>{b: 100, d: (<6>.a.b + 3)}, v: <7>{b: int, c: (<6>.v.b + 5)}, w: <8>{b: 100, c: (<6>.v.b + 5)}, wp: <9>{b: 100, c: (<6>.v.b + 5)}}