But this code compiles fine.
    
    
    type Price = distinct int
    
    var f = 3.6
    var p = Price(f)
    echo p              # 3, rather than 4
    
    
    Run

This is what I want to avoid.

Reply via email to