cuelang.org/go@v0.10.1/pkg/math/testdata/issue418.txtar (about)

     1  -- in.cue --
     2  import "math"
     3  
     4  a: {
     5  	x: 32.45
     6  	y: int
     7  	y: math.Round(x)
     8  }
     9  
    10  b: {
    11  	x: 32.45
    12  	y: int
    13  	y: math.Log(x)
    14  }
    15  -- out/math --
    16  Errors:
    17  b.y: conflicting values int and 3.479700443150099001242770375542286 (mismatched types int and float):
    18      ./in.cue:11:5
    19      ./in.cue:12:5
    20  
    21  Result:
    22  a: {
    23  	x: 32.45
    24  	y: 32
    25  }
    26  b: {
    27  	x: 32.45
    28  	y: _|_ // b.y: conflicting values int and 3.479700443150099001242770375542286 (mismatched types int and float)
    29  }