| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: dont pass incomplete values to builtins |
| #evalFull |
| -- in.cue -- |
| import "encoding/json" |
| |
| input: string |
| foo: json.Marshal(input) |
| -- out/def -- |
| import "encoding/json" |
| |
| input: string |
| foo: json.Marshal(input) |
| -- out/legacy-debug -- |
| <0>{input: string, foo: <1>.Marshal (<2>.input)} |
| -- out/eval -- |
| (struct){ |
| input: (string){ string } |
| foo: (_|_){ |
| // [incomplete] foo: non-concrete argument 0: |
| // ./in.cue:4:8 |
| } |
| } |
| -- out/compile -- |
| --- in.cue |
| { |
| input: string |
| foo: 〈import;"encoding/json"〉.Marshal(〈0;input〉) |
| } |