#name: delayed constraint failure
#evalPartial
# Tests that cycles resolved by defaults produce correct values, while
# conflicting constraints on the same field produce errors.
-- in.cue --
a: b - 100 // Okay to have no error here, as long as there is an error with b.
b: a + 110
b: 200

x: 100
x: x + 1
-- out/compile --
--- in.cue
{
  a: (〈0;b〉 - 100)
  b: (〈0;a〉 + 110)
  b: 200
  x: 100
  x: (〈0;x〉 + 1)
}
