# DO NOT EDIT; generated by go run testdata/gen.go | |
# | |
#name: basic type | |
#evalPartial | |
-- in.cue -- | |
a: 1 & int | |
b: number & 1 | |
c: 1.0 | |
c: float | |
d: int & float // _|_ | |
e: "4" & string | |
f: true | |
f: bool | |
-- out/def -- | |
a: 1 | |
b: 1 | |
c: 1.0 | |
d: _|_ // conflicting values int and float (mismatched types int and float) | |
e: "4" | |
f: true | |
-- out/legacy-debug -- | |
<0>{a: 1, b: 1, c: 1.0, d: _|_((int & float):conflicting values int and float (mismatched types int and float)), e: "4", f: true} | |
-- out/compile -- | |
--- in.cue | |
{ | |
a: (1 & int) | |
b: (number & 1) | |
c: 1.0 | |
c: float | |
d: (int & float) | |
e: ("4" & string) | |
f: true | |
f: bool | |
} | |
-- out/eval -- | |
(_|_){ | |
// [eval] | |
a: (int){ 1 } | |
b: (int){ 1 } | |
c: (float){ 1.0 } | |
d: (_|_){ | |
// [eval] invalid value *adt.BasicType (mismatched types float and int) | |
} | |
e: (string){ "4" } | |
f: (bool){ true } | |
} |