blob: 216d8100f5f7191ad9e4d75b2e5b2bf118c18137 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: selecting
#evalPartial
-- in.cue --
obj: {a: 1, b: 2}
index: {a: 1, b: 2}["b"]
mulidx: {a: 1, b: {a: 1, b: 3}}["b"]["b"]
e: {a: 1}[4]
f: {a: 1}.b
g: {a: 1}["b"]
h: [3].b
-- out/def --
obj: {
a: 1
b: 2
}
index: 2
mulidx: 3
e: _|_ // invalid struct index 4 (type int)
f: {
a: 1
}.b
g: {
a: 1
}["b"]
h: _|_ // invalid operation: [3].b (type list does not support selection)
-- out/legacy-debug --
<0>{obj: <1>{a: 1, b: 2}, index: 2, mulidx: 3, e: _|_(4:invalid struct index 4 (type int)), f: <2>{a: 1}.b, g: <3>{a: 1}["b"], h: _|_([3]:invalid operation: [3].b (type list does not support selection))}