Hi, here is an example:
    
    
    proc foo[T](x: T) =
      when compiles $x:
        echo 1
      else:
        echo 0
    
    type A = distinct int
    foo A 1
    
    Run

Reply via email to