github.com/solo-io/cue@v0.4.7/cue/testdata/basicrewrite/018_self-reference_cycles.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: self-reference cycles
     4  #evalPartial
     5  -- in.cue --
     6  a: b - 100
     7  b: a + 100
     8  
     9  c: [c[1], c[0]]
    10  -- out/def --
    11  a: b - 100
    12  b: a + 100
    13  c: [c[1], c[0]]
    14  -- out/legacy-debug --
    15  <0>{a: (<1>.b - 100), b: (<1>.a + 100), c: [<1>.c[1],<1>.c[0]]}
    16  -- out/compile --
    17  --- in.cue
    18  {
    19    a: (〈0;b〉 - 100)
    20    b: (〈0;a〉 + 100)
    21    c: [
    22      〈0;c〉[1],
    23      〈0;c〉[0],
    24    ]
    25  }
    26  -- out/eval --
    27  (struct){
    28    a: (_|_){
    29      // [cycle] cycle error:
    30      //     ./in.cue:1:4
    31    }
    32    b: (_|_){
    33      // [cycle] cycle error:
    34      //     ./in.cue:1:4
    35    }
    36    c: (#list){
    37      0: (_){ _ }
    38      1: (_){ _ }
    39    }
    40  }