github.com/solo-io/cue@v0.4.7/doc/tutorial/basics/6_expressions/25_interpolfield.txt (about) 1 ! cue eval genfield.cue 2 cmp stderr expect-stderr 3 4 -- frontmatter.toml -- 5 title = "Interpolation of Field Names" 6 description = "" 7 8 -- text.md -- 9 String interpolations may also be used in field names. 10 11 One cannot refer to generated fields with references. 12 13 -- genfield.cue -- 14 sandwich: { 15 type: "Cheese" 16 "has\(type)": true 17 hasButter: true 18 butterAndCheese: hasButter && hasCheese 19 } 20 21 -- expect-stderr -- 22 sandwich.butterAndCheese: reference "hasCheese" not found: 23 ./genfield.cue:5:35