blob: cc381c9daa95599fdd8a6121a651b147c37a39bd [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
raw: true
eval: true
noOpt: true
-- in.cue --
{
reg: {foo: 1, bar: {baz: 3}}
#def: {
a: 1
sub: reg
}
val: #def
#def2: {
a: {b: int}
}
val2: #def2
}
-- out/def --
reg: {
foo: 1
bar: {
baz: 3
}
}
#def: {
a: 1
sub: reg
}
val: #def
#def2: {
a: {
b: int
}
}
val2: #def2
-- out/compile --
--- in.cue
{
{
reg: {
foo: 1
bar: {
baz: 3
}
}
#def: {
a: 1
sub: 1;reg
}
val: 0;#def
#def2: {
a: {
b: int
}
}
val2: 0;#def2
}
}
-- out/eval --
(struct){
reg: (struct){
foo: (int){ 1 }
bar: (struct){
baz: (int){ 3 }
}
}
#def: (#struct){
a: (int){ 1 }
sub: (#struct){
foo: (int){ 1 }
bar: (#struct){
baz: (int){ 3 }
}
}
}
val: (#struct){
a: (int){ 1 }
sub: (#struct){
foo: (int){ 1 }
bar: (#struct){
baz: (int){ 3 }
}
}
}
#def2: (#struct){
a: (#struct){
b: (int){ int }
}
}
val2: (#struct){
a: (#struct){
b: (int){ int }
}
}
}