<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Mar 17, 2016, at 6:58 AM, Rudolf Adamkovič via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:<br class=""><div><blockquote type="cite" class=""><br class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; line-height: normal; min-height: 14px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif" size="2" class="">How come I can’t call&nbsp;</font></span><span style="font-family: Menlo;" class="">zip</span><span style="background-color: rgb(255, 255, 255);" class=""><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif" size="2" class="">&nbsp;without&nbsp;explicitly&nbsp;specifying return type?</font></span></div><div style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);" class="">// ERROR: Cannot invoke `zip` with an argument list of type `(Int, Int)`</div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">let</span> y = <span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">Something</span>.zip(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">2</span>)</div><div style="margin: 0px; line-height: normal; font-family: Menlo; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);" class="">// OK: Works but it’s unacceptable to require this on caller's side</div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">let</span> x = <span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">Something</span>&lt;(<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">Int</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">Int</span>)&gt;.<span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">zip</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">2</span>)</div><div class=""><br class=""></div><div class="">Thank you for your time!</div></div></div></blockquote><br class=""></div><div>I know that your root problem was already answered, but FYI swift master makes it much more clear what is wrong:</div><div><br class=""></div><div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="color: rgb(52, 187, 199);" class="">test.swift:1:19: </span><span style="color: rgb(195, 55, 32);" class="">error: </span>generic parameter 'T' could not be inferred</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">let y = Something.zip(1, 2)</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(52, 189, 38);" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">test.swift:1:13: note: 'T' declared as parameter to type 'Something'</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">final class Something&lt;T&gt; {</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(52, 189, 38);" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</div><div class=""><br class=""></div></div><div class="">-Chris</div></body></html>