github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/cue/testdata/eval/fields.txtar (about) 1 -- in.cue -- 2 bulkToSelf: { 3 a: { 4 foo: [string]: int 5 foo: bar: "3" // error 6 } 7 } 8 intField: { 9 (2): string 10 } 11 -- out/compile -- 12 --- in.cue 13 { 14 bulkToSelf: { 15 a: { 16 foo: { 17 [string]: int 18 } 19 foo: { 20 bar: "3" 21 } 22 } 23 } 24 intField: { 25 2: string 26 } 27 } 28 -- out/eval -- 29 Errors: 30 bulkToSelf.a.foo.bar: conflicting values "3" and int (mismatched types string and int): 31 ./in.cue:3:18 32 ./in.cue:4:18 33 intField: integer fields not supported: 34 ./in.cue:8:3 35 36 Result: 37 (_|_){ 38 // [eval] 39 bulkToSelf: (_|_){ 40 // [eval] 41 a: (_|_){ 42 // [eval] 43 foo: (_|_){ 44 // [eval] 45 bar: (_|_){ 46 // [eval] bulkToSelf.a.foo.bar: conflicting values "3" and int (mismatched types string and int): 47 // ./in.cue:3:18 48 // ./in.cue:4:18 49 } 50 } 51 } 52 } 53 intField: (_|_){ 54 // [eval] intField: integer fields not supported: 55 // ./in.cue:8:3 56 2: (string){ string } 57 } 58 }