cuelang.org/go@v0.10.1/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/stats -- 18 Leaks: 0 19 Freed: 3 20 Reused: 1 21 Allocs: 2 22 Retain: 0 23 24 Unifications: 3 25 Conjuncts: 7 26 Disjuncts: 3 27 -- out/eval -- 28 (struct){ 29 input: (string){ string } 30 foo: (_|_){ 31 // [incomplete] foo: non-concrete argument 0: 32 // ./in.cue:4:8 33 } 34 } 35 -- out/compile -- 36 --- in.cue 37 { 38 input: string 39 foo: 〈import;"encoding/json"〉.Marshal(〈0;input〉) 40 }