cuelang.org/go@v0.13.0/cue/testdata/export/027.txtar (about) 1 2 TODO: Should #Bar result in string or #Foo | string? 3 4 5 raw: true 6 eval: true 7 -- in.cue -- 8 { 9 #Foo: { 10 #Bar: #Foo | string 11 } 12 } 13 -- out/def -- 14 #Foo: { 15 #Bar: #Foo | string 16 } 17 -- out/export -- 18 19 -- out/yaml -- 20 {} 21 -- out/json -- 22 {} 23 -- out/compile -- 24 --- in.cue 25 { 26 { 27 #Foo: { 28 #Bar: (〈1;#Foo〉|string) 29 } 30 } 31 } 32 -- out/eval/stats -- 33 Leaks: 0 34 Freed: 5 35 Reused: 1 36 Allocs: 4 37 Retain: 0 38 39 Unifications: 3 40 Conjuncts: 6 41 Disjuncts: 5 42 -- out/eval -- 43 (struct){ 44 #Foo: (#struct){ 45 #Bar: (string){ string } 46 } 47 }