github.com/solo-io/cue@v0.4.7/cue/testdata/resolve/023_correct_error_messages.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: correct error messages
     4  #evalPartial
     5  -- in.cue --
     6  a: "a" & 1
     7  -- out/def --
     8  a: _|_ // conflicting values "a" and 1 (mismatched types string and int)
     9  -- out/legacy-debug --
    10  <0>{a: _|_(("a" & 1):conflicting values "a" and 1 (mismatched types string and int))}
    11  -- out/compile --
    12  --- in.cue
    13  {
    14    a: ("a" & 1)
    15  }
    16  -- out/eval --
    17  Errors:
    18  a: conflicting values "a" and 1 (mismatched types string and int):
    19      ./in.cue:1:4
    20      ./in.cue:1:10
    21  
    22  Result:
    23  (_|_){
    24    // [eval]
    25    a: (_|_){
    26      // [eval] a: conflicting values "a" and 1 (mismatched types string and int):
    27      //     ./in.cue:1:4
    28      //     ./in.cue:1:10
    29    }
    30  }