blob: 3d482291e5db232152ab7ac701e7378524643547 [file] [log] [blame]
-- in.cue --
merge: and([1, 1])
// ensure definitions along embedded scalars are preserved.
embed: and([{2, #x: 1}, {2, #x: 2}])
-- out/eval --
Errors:
embed.#x: conflicting values 2 and 1:
./in.cue:4:21
./in.cue:4:33
Result:
(_|_){
// [eval]
merge: (int){ 1 }
embed: (_|_){
// [eval]
#x: (_|_){
// [eval] embed.#x: conflicting values 2 and 1:
// ./in.cue:4:21
// ./in.cue:4:33
}
}
}
-- out/compile --
--- in.cue
{
merge: and([
1,
1,
])
embed: and([
{
2
#x: 1
},
{
2
#x: 2
},
])
}