...

Text file src/cuelang.org/go/cue/testdata/fulleval/046_non-structural_direct_cycles.txtar

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

     1# DO NOT EDIT; generated by go run testdata/gen.go
     2#
     3#name: non-structural direct cycles
     4#evalFull
     5-- in.cue --
     6c1: {bar: baz: 2} & c1.bar
     7c2: {bar:      1} & c2.bar
     8-- out/def --
     9c1: {
    10	bar: {
    11		baz: 2
    12	}
    13} & c1.bar
    14c2: _|_ // conflicting values {bar: 1} and 1 (mismatched types struct and int)
    15-- out/legacy-debug --
    16<0>{c1: <1>{bar: <2>{baz: 2}, baz: 2}, c2: _|_(conflicting values {bar: 1} and 1 (mismatched types struct and int))}
    17-- out/compile --
    18--- in.cue
    19{
    20  c1: ({
    21    bar: {
    22      baz: 2
    23    }
    24  } & 〈0;c1〉.bar)
    25  c2: ({
    26    bar: 1
    27  } & 〈0;c2〉.bar)
    28}
    29-- out/eval/stats --
    30Leaks:  0
    31Freed:  7
    32Reused: 3
    33Allocs: 4
    34Retain: 2
    35
    36Unifications: 7
    37Conjuncts:    10
    38Disjuncts:    8
    39-- out/eval --
    40Errors:
    41c2: conflicting values 1 and {bar:1} (mismatched types int and struct):
    42    ./in.cue:2:5
    43    ./in.cue:2:16
    44
    45Result:
    46(_|_){
    47  // [eval]
    48  c1: (struct){
    49    bar: (struct){
    50      baz: (int){ 2 }
    51    }
    52    baz: (int){ 2 }
    53  }
    54  c2: (_|_){
    55    // [eval] c2: conflicting values 1 and {bar:1} (mismatched types int and struct):
    56    //     ./in.cue:2:5
    57    //     ./in.cue:2:16
    58    bar: (int){ 1 }
    59  }
    60}

View as plain text