blob: f34909f13be4a2badf00f3f321b28249fea0da6b [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
raw: true
-- in.cue --
{a: *"foo" | *"bar" | *string | int, b: a[2:3]}
-- out/def --
a: *string | int
b: _|_ // cannot slice a (type string)
-- out/compile --
--- in.cue
{
{
a: (*"foo"|*"bar"|*string|int)
b: 0;a〉[2:3]
}
}