blob: d6d547c15c01af0724033e9e4423068aa838389e [file] [log] [blame]
-- in.cue --
import "math"
a: {
x: 32.45
y: int
y: math.Round(x)
}
b: {
x: 32.45
y: int
y: math.Log(x)
}
-- out/math --
Errors:
b.y: conflicting values int and 3.47970044315009900124277 (mismatched types int and float):
./in.cue:11:8
./in.cue:12:8
Result:
a: {
x: 32.45
y: 32
}
b: {
x: 32.45
y: _|_ // b.y: conflicting values int and 3.47970044315009900124277 (mismatched types int and float)
}