github.com/solo-io/cue@v0.4.7/cue/testdata/eval/fields.txtar (about)

     1  -- in.cue --
     2  bulkToSelf: {
     3      a: {
     4          foo: [string]: int
     5          foo: bar: "3" // error
     6      }
     7  }
     8  -- out/compile --
     9  --- in.cue
    10  {
    11    bulkToSelf: {
    12      a: {
    13        foo: {
    14          [string]: int
    15        }
    16        foo: {
    17          bar: "3"
    18        }
    19      }
    20    }
    21  }
    22  -- out/eval --
    23  Errors:
    24  bulkToSelf.a.foo.bar: conflicting values "3" and int (mismatched types string and int):
    25      ./in.cue:3:24
    26      ./in.cue:4:19
    27  
    28  Result:
    29  (_|_){
    30    // [eval]
    31    bulkToSelf: (_|_){
    32      // [eval]
    33      a: (_|_){
    34        // [eval]
    35        foo: (_|_){
    36          // [eval]
    37          bar: (_|_){
    38            // [eval] bulkToSelf.a.foo.bar: conflicting values "3" and int (mismatched types string and int):
    39            //     ./in.cue:3:24
    40            //     ./in.cue:4:19
    41          }
    42        }
    43      }
    44    }
    45  }