Fix several float range issues

This commit is contained in:
Oscar Nihlgård 2019-08-07 20:34:52 +02:00 • committed by narimiran
commit def6234903
5 changed files with 30 additions and 3 deletions

View file

@ -118,3 +118,14 @@ block:
x3 = R32(4)
doAssert $x1 & $x2 & $x3 == "444"
block:
var x1: range[0'f..1'f] = 1
const x2: range[0'f..1'f] = 1
var x5: range[0'f32..1'f32] = 1'f64
const x6: range[0'f32..1'f32] = 1'f64
reject:
const x: range[0'f..1'f] = 2'f
reject:
const x: range[0'f..1'f] = 2