blob: ed33d287675bac687f56d2f527d8c0a79f3851f4 [file] [log] [blame]
# 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 --
Errors:
d: invalid value float (mismatched types float and int)
Result:
(_|_){
// [eval]
a: (int){ 1 }
b: (int){ 1 }
c: (float){ 1.0 }
d: (_|_){
// [eval] d: invalid value float (mismatched types float and int)
}
e: (string){ "4" }
f: (bool){ true }
}