...

Text file src/cuelang.org/go/cue/testdata/cycle/cycle_with_bounds.txtar

Documentation: cuelang.org/go/cue/testdata/cycle

     1-- in.cue --
     2#Value: int
     3
     4foo: #Value
     5foo: !=bar
     6bar: #Value
     7bar: !=foo
     8
     9bar: 0
    10foo: 1
    11-- out/compile --
    12--- in.cue
    13{
    14  #Value: int
    15  foo: 〈0;#Value〉
    16  foo: !=〈0;bar〉
    17  bar: 〈0;#Value〉
    18  bar: !=〈0;foo〉
    19  bar: 0
    20  foo: 1
    21}
    22-- out/eval/stats --
    23Leaks:  0
    24Freed:  4
    25Reused: 1
    26Allocs: 3
    27Retain: 1
    28
    29Unifications: 4
    30Conjuncts:    9
    31Disjuncts:    4
    32-- out/eval --
    33(struct){
    34  #Value: (int){ int }
    35  foo: (int){ 1 }
    36  bar: (int){ 0 }
    37}

View as plain text