Look at the following code.
    
    
    type Price = distinct int
    
    converter float_to_price(x: float): Price = x.toInt.Price
    
    let x = 3.6
    let y = Price(x)                   # y = 3,  I want to disable it
    let z: Price = x                   # z = 4, correct
    
    
    Run

I hope I can't disable the `Price(3.6)` or make the `Price(3.6)` do as 
`Price(3.6.toInt)`. How can I do? 

Reply via email to