But this code compiles fine.
type Price = distinct int
var f = 3.6
var p = Price(f)
echo p # 3, rather than 4
RunThis is what I want to avoid.
But this code compiles fine.
type Price = distinct int
var f = 3.6
var p = Price(f)
echo p # 3, rather than 4
RunThis is what I want to avoid.