#name: interpolation #evalPartial -- in.cue -- a: "\(4)" b: "one \(a) two \( a+c )" c: "one" d: "\(r)" u: "\(_)" r: _ e: "\([])" -- out/compile -- --- in.cue { a: "\(4)" b: "one \(〈0;a〉) two \((〈0;a〉 + 〈0;c〉))" c: "one" d: "\(〈0;r〉)" u: "\(_)" r: _ e: "\([])" } -- out/eval/stats -- Leaks: 1 Freed: 8 Reused: 6 Allocs: 3 Retain: 12 Unifications: 9 Conjuncts: 16 Disjuncts: 19 -- out/eval -- Errors: e: invalid interpolation: cannot use [] (type list) as type (bool|string|bytes|number): ./in.cue:7:4 ./in.cue:7:7 Result: (_|_){ // [eval] a: (string){ "4" } b: (string){ "one 4 two 4one" } c: (string){ "one" } d: (_|_){ // [incomplete] d: invalid interpolation: non-concrete value _ (type _): // ./in.cue:4:4 } u: (_|_){ // [incomplete] u: invalid interpolation: non-concrete value _ (type _): // ./in.cue:5:4 // ./in.cue:5:7 } r: (_){ _ } e: (_|_){ // [eval] e: invalid interpolation: cannot use [] (type list) as type (bool|string|bytes|number): // ./in.cue:7:4 // ./in.cue:7:7 } }