# DO NOT EDIT; generated by go run testdata/gen.go | |
# | |
#name: conditional field | |
#evalFull | |
-- in.cue -- | |
if b { | |
a: "foo" | |
} | |
b: true | |
c: { | |
a: 3 | |
if a > 1 { | |
a: 3 | |
} | |
} | |
d: { | |
a: int | |
if a > 1 { | |
a: 3 | |
} | |
} | |
-- out/def -- | |
b: true | |
a: "foo" | |
c: { | |
a: 3 | |
} | |
d: { | |
a: int | |
if a > 1 { | |
a: 3 | |
} | |
} | |
-- out/legacy-debug -- | |
<0>{b: true, a: "foo", c: <1>{a: 3}, d: <2>{a: int if (<3>.a > 1) yield <4>{a: 3}}} |