Hello people, new user of nim here and I am already excited! I have the 
following scenario, for test purposes, and I think I'm missing something here, 
or, in other words, how to make the compiler get what I mean?
    
    
    proc test(names:varargs[seq[string]]) = discard
    proc test(names:varargs[string]) = discard
    
    test "hello", "world"  # works
    test @["hello"], @["world"]  # works
    test @["hello", "world"]  # compiler error, I get an "ambiguous call"
    
    
    Run

In my eyes this is not an "ambiguous call", since this is clearly a seq and not 
a varags. And this is obvious for me, since the two types are not 
interchangeable. So what I am missing here?

Reply via email to