github.com/solo-io/cue@v0.4.7/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 -- 35 (struct){ 36 #Foo: (#struct){ 37 #Bar: (string){ string } 38 } 39 }