<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'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"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></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) -> (Void) -> Void)<br>
<br>
Sorry. :-(<br>
Jordan<br>
<div><div class="m_3222598819779827177gmail-h5"><br>
<br>
> On Feb 22, 2017, at 09:13, Dmitry Shevchenko via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:<br>
><br>
> #selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify) throws an error:<br>
> Ambiguous use of 'readToEndOfFileInBackgroundAn<wbr>dNotify'<br>
><br>
> So I've tried to specify it a bit more (notice the parens):<br>
> #selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify())<br>
> Ambiguous reference to member 'readToEndOfFileInBackgroundAn<wbr>dNotify(forModes:)'<br>
><br>
> So I've tried to cast it to a Void -> Void func:<br>
> #selector(FileHandle.readToEnd<wbr>OfFileInBackgroundAndNotify as (Void) -> Void)<br>
> Ambiguous reference to member 'readToEndOfFileInBackgroundAn<wbr>dNotify(forModes:)'<br>
><br>
> How do I settle this one?<br>
><br>
> Method signatures in the generated header are:<br>
> open func readToEndOfFileInBackgroundAnd<wbr>Notify(forModes modes: [RunLoopMode]?)<br>
> open func readToEndOfFileInBackgroundAnd<wbr>Notify()<br>
</div></div>> ______________________________<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>
<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>