<div dir="ltr">I just started a swift-evolution thread related to this:  <a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170220/032890.html" target="_blank">https://lists.swift.org/<wbr>pipermail/swift-evolution/<wbr>Week-of-Mon-20170220/032890.<wbr>html</a><div><br></div><div>There&#39;s also a relevant bug: <a href="https://bugs.swift.org/browse/SR-2654" target="_blank">https://bugs.swift.org/<wbr>browse/SR-2654</a></div><div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Feb 22, 2017 at 3:10 PM, Jordan Rose via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">#selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify as (FileHandle) -&gt; (Void) -&gt; Void)<br>
<br>
Sorry. :-(<br>
Jordan<br>
<div><div class="m_3222598819779827177gmail-h5"><br>
<br>
&gt; On Feb 22, 2017, at 09:13, Dmitry Shevchenko via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt; #selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify) throws an error:<br>
&gt;   Ambiguous use of &#39;readToEndOfFileInBackgroundAn<wbr>dNotify&#39;<br>
&gt;<br>
&gt; So I&#39;ve tried to specify it a bit more (notice the parens):<br>
&gt; #selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify())<br>
&gt;   Ambiguous reference to member &#39;readToEndOfFileInBackgroundAn<wbr>dNotify(forModes:)&#39;<br>
&gt;<br>
&gt; So I&#39;ve tried to cast it to a Void -&gt; Void func:<br>
&gt; #selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify as (Void) -&gt; Void)<br>
&gt;   Ambiguous reference to member &#39;readToEndOfFileInBackgroundAn<wbr>dNotify(forModes:)&#39;<br>
&gt;<br>
&gt; How do I settle this one?<br>
&gt;<br>
&gt; Method signatures in the generated header are:<br>
&gt; open func readToEndOfFileInBackgroundAnd<wbr>Notify(forModes modes: [RunLoopMode]?)<br>
&gt; open func readToEndOfFileInBackgroundAnd<wbr>Notify()<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; swift-users mailing list<br>
&gt; <a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br>
<br>
______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br>
</blockquote></div><br></div></div>