| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: Issue #178 |
| #evalFull |
| -- in.cue -- |
| import "encoding/csv" |
| |
| import "encoding/hex" |
| |
| foo: csv.Decode(data) |
| data: bytes |
| |
| len: int |
| bar: hex.EncodedLen(len) |
| -- out/def -- |
| import ( |
| "encoding/csv" |
| "encoding/hex" |
| ) |
| |
| foo: csv.Decode(data) |
| data: bytes |
| len: int |
| bar: hex.EncodedLen(len) |
| -- out/legacy-debug -- |
| <0>{foo: <1>.Decode (<2>.data), data: bytes, len: int, bar: <3>.EncodedLen (<2>.len)} |
| -- out/eval -- |
| (struct){ |
| foo: (_|_){ |
| // [incomplete] error in call to encoding/csv.Decode: non-concrete value bytes: |
| // ./in.cue:5:7 |
| } |
| data: (bytes){ bytes } |
| len: (int){ int } |
| bar: (_|_){ |
| // [incomplete] error in call to encoding/hex.EncodedLen: non-concrete value int: |
| // ./in.cue:9:6 |
| } |
| } |
| -- out/compile -- |
| --- in.cue |
| { |
| foo: 〈import;"encoding/csv"〉.Decode(〈0;data〉) |
| data: bytes |
| len: int |
| bar: 〈import;"encoding/hex"〉.EncodedLen(〈0;len〉) |
| } |