github.com/solo-io/cue@v0.4.7/cue/testdata/export/012.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 raw: true 4 -- in.cue -- 5 {a: *"foo" | *"bar" | *string | int, b: a[2:3]} 6 -- out/def -- 7 a: *string | int 8 b: _|_ // cannot slice a (type string) 9 -- out/compile -- 10 --- in.cue 11 { 12 { 13 a: (*"foo"|*"bar"|*string|int) 14 b: ć0;ać[2:3] 15 } 16 } 17 -- out/eval -- 18 (struct){ 19 a: ((int|string)){ |(*(string){ "foo" }, *(string){ "bar" }, *(string){ string }, (int){ int }) } 20 b: (_|_){ 21 // [incomplete] b: non-concrete slice subject a: 22 // ./in.cue:1:41 23 } 24 }