github.com/solo-io/cue@v0.4.7/cue/testdata/cycle/021_delayed_constraint_failure.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: delayed constraint failure
     4  #evalPartial
     5  -- in.cue --
     6  a: b - 100
     7  b: a + 110
     8  b: 200
     9  
    10  x: 100
    11  x: x + 1
    12  -- out/def --
    13  x: _|_ // conflicting values 100 and 101
    14  a: _|_ // conflicting values 210 and 200
    15  b: _|_ // conflicting values 210 and 200
    16  -- out/legacy-debug --
    17  <0>{x: _|_((100 & 101):conflicting values 100 and 101), a: _|_((210 & 200):conflicting values 210 and 200), b: _|_((210 & 200):conflicting values 210 and 200)}
    18  -- out/compile --
    19  --- in.cue
    20  {
    21    a: (〈0;b〉 - 100)
    22    b: (〈0;a〉 + 110)
    23    b: 200
    24    x: 100
    25    x: (〈0;x〉 + 1)
    26  }
    27  -- out/eval --
    28  Errors:
    29  b: conflicting values 210 and 200:
    30      ./in.cue:2:4
    31      ./in.cue:3:4
    32  x: conflicting values 101 and 100:
    33      ./in.cue:5:4
    34      ./in.cue:6:4
    35  
    36  Result:
    37  (_|_){
    38    // [eval]
    39    a: (_|_){
    40      // [eval] b: conflicting values 210 and 200:
    41      //     ./in.cue:2:4
    42      //     ./in.cue:3:4
    43    }
    44    b: (_|_){
    45      // [eval] b: conflicting values 210 and 200:
    46      //     ./in.cue:2:4
    47      //     ./in.cue:3:4
    48    }
    49    x: (_|_){
    50      // [eval] x: conflicting values 101 and 100:
    51      //     ./in.cue:5:4
    52      //     ./in.cue:6:4
    53    }
    54  }