You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variadicity marker is only applied if the last parameter is variadic. So these functions have the same mangled name:
funcxxx(f1: [Int], bar: Int) { }
funcxxx(f1: Int..., bar: Int) { }
Additionaly, after a bit of investigation I have found that variadicity is marked for whole tuple, therefore these two functions would also have the same name if I tried to fix current mangling logic:
funcxxx(f1: [Int], f2: Int..., bar: Int) { }
funcxxx(f1: Int..., f2: [Int], bar: Int) { }
Perhaps variadicity should be reduced to syntatic sugar, so that func foo(a : Int...) is always of type ([Int]) -> (), and users can call it with array.
Additional Detail from JIRA
md5: aa7ae25b44fc094a36a956e624b0a24e
relates to:
Issue Description:
Ahead of ABI stability, consider if we need to more carefully mangle variadicity of function parameters.
The text was updated successfully, but these errors were encountered: