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