cuelang.org/go@v0.10.1/cue/testdata/export/025.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 raw: true 4 eval: true 5 -- in.cue -- 6 { 7 b: [{ 8 {[X=_]: int} 9 if a > 4 { 10 f: 4 11 } 12 }][a] 13 a: int 14 c: *1 | 2 15 } 16 -- out/def -- 17 b: [{ 18 if a > 4 { 19 f: 4 20 } 21 {[X=string]: int} 22 }][a] 23 a: int 24 c: *1 | 2 25 -- out/compile -- 26 --- in.cue 27 { 28 { 29 b: [ 30 { 31 { 32 [_]: int 33 } 34 if (ć2;ać > 4) { 35 f: 4 36 } 37 }, 38 ][ć0;ać] 39 a: int 40 c: (*1|2) 41 } 42 } 43 -- out/eval/stats -- 44 Leaks: 5 45 Freed: 6 46 Reused: 2 47 Allocs: 9 48 Retain: 10 49 50 Unifications: 9 51 Conjuncts: 16 52 Disjuncts: 16 53 -- out/eval -- 54 (struct){ 55 b: (_|_){ 56 // [incomplete] b: invalid non-ground value int (must be concrete int): 57 // ./in.cue:8:5 58 } 59 a: (int){ int } 60 c: (int){ |(*(int){ 1 }, (int){ 2 }) } 61 }