blob: 2fbf34cd7402f37d12e1214ce87ef881acbc8c5d [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: non-structural direct cycles
#evalFull
-- in.cue --
c1: {bar: baz: 2} & c1.bar
c2: {bar: 1} & c2.bar
-- out/def --
c1: {
bar: {
baz: 2
}
} & c1.bar
c2: _|_ // conflicting values {bar: 1} and 1 (mismatched types struct and int)
-- out/legacy-debug --
<0>{c1: <1>{bar: <2>{baz: 2}, baz: 2}, c2: _|_(conflicting values {bar: 1} and 1 (mismatched types struct and int))}
-- out/compile --
--- in.cue
{
c1: ({
bar: {
baz: 2
}
} & 0;c1〉.bar)
c2: ({
bar: 1
} & 0;c2〉.bar)
}
-- out/eval --
Errors:
c2: conflicting values 1 and {bar:1} (mismatched types int and struct):
./in.cue:2:5
./in.cue:2:16
Result:
(_|_){
// [eval]
c1: (struct){
bar: (struct){
baz: (int){ 2 }
}
baz: (int){ 2 }
}
c2: (_|_){
// [eval] c2: conflicting values 1 and {bar:1} (mismatched types int and struct):
// ./in.cue:2:5
// ./in.cue:2:16
bar: (int){ 1 }
}
}