github.com/solo-io/cue@v0.4.7/cue/testdata/fulleval/048_dont_pass_incomplete_values_to_builtins.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: dont pass incomplete values to builtins
     4  #evalFull
     5  -- in.cue --
     6  import "encoding/json"
     7  
     8  input: string
     9  foo:   json.Marshal(input)
    10  -- out/def --
    11  import "encoding/json"
    12  
    13  input: string
    14  foo:   json.Marshal(input)
    15  -- out/legacy-debug --
    16  <0>{input: string, foo: <1>.Marshal (<2>.input)}
    17  -- out/eval --
    18  (struct){
    19    input: (string){ string }
    20    foo: (_|_){
    21      // [incomplete] foo: non-concrete argument 0:
    22      //     ./in.cue:4:8
    23    }
    24  }
    25  -- out/compile --
    26  --- in.cue
    27  {
    28    input: string
    29    foo: 〈import;"encoding/json"〉.Marshal(〈0;input〉)
    30  }