Try this:
    
    
    proc returnZero(T: typedesc = typedesc[float64]): T = T(0)
    
    discard returnZero(int)
    discard returnZero()
    
    
    Run

Although you might want to use `system.default[T]()` instead

Reply via email to