I wonder why this fails:
    
    
    type
      Iterable = concept c
        for i in c: discard
    
    proc test[T](x: T) =
      echo x
    
    proc test(x: Iterable) =
      for i in x: echo i
    
    test(1)
    test([1, 2, 3])
    

Shouldn't `Iterable` be a better match?

Reply via email to