blob: ddc9a369f8b3ab345eff8337683ef0310242e6a6 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: attributes
#evalPartial
-- in.cue --
a: {foo: 1 @foo() @baz(1)}
b: {foo: 1 @bar() @foo()}
c: a & b
e: a & {foo: 1 @foo(other)}
-- out/def --
a: {
foo: 1 @baz(1) @foo()
}
b: {
foo: 1 @bar() @foo()
}
c: a & b
e: _|_ // conflicting attributes for key "foo"
-- out/legacy-debug --
<0>{a: <1>{foo: 1 @baz(1) @foo()}, b: <2>{foo: 1 @bar() @foo()}, c: <3>{foo: 1 @bar() @baz(1) @foo()}, e: _|_((<4>.a & <5>{foo: 1 @foo(other)}):conflicting attributes for key "foo")}
-- out/compile --
--- in.cue
{
a: {
foo: 1
}
b: {
foo: 1
}
c: (〈0;a & 0;b〉)
e: (〈0;a & {
foo: 1
})
}
-- out/eval --
(struct){
a: (struct){
foo: (int){ 1 }
}
b: (struct){
foo: (int){ 1 }
}
c: (struct){
foo: (int){ 1 }
}
e: (struct){
foo: (int){ 1 }
}
}