<div dir="ltr">Thank you.<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Feb 22, 2017 at 6:37 PM Jacob Bandes-Storch <<a href="mailto:jtbandes@gmail.com">jtbandes@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">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" class="gmail_msg" target="_blank">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170220/032890.html</a><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">There's also a relevant bug: <a href="https://bugs.swift.org/browse/SR-2654" class="gmail_msg" target="_blank">https://bugs.swift.org/browse/SR-2654</a></div></div><div dir="ltr" class="gmail_msg"><div class="gmail_extra gmail_msg">
<br class="gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Feb 22, 2017 at 3:10 PM, Jordan Rose via swift-users <span dir="ltr" class="gmail_msg"><<a href="mailto:swift-users@swift.org" class="gmail_msg" target="_blank">swift-users@swift.org</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">#selector(FileHandle.readToEndOfFileInBackgroundAndNotify as (FileHandle) -> (Void) -> Void)<br class="gmail_msg">
<br class="gmail_msg">
Sorry. :-(<br class="gmail_msg">
Jordan<br class="gmail_msg">
<div class="gmail_msg"><div class="m_-1046967471180711188m_3222598819779827177gmail-h5 gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
> On Feb 22, 2017, at 09:13, Dmitry Shevchenko via swift-users <<a href="mailto:swift-users@swift.org" class="gmail_msg" target="_blank">swift-users@swift.org</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> #selector(FileHandle.readToEndOfFileInBackgroundAndNotify) throws an error:<br class="gmail_msg">
> Ambiguous use of 'readToEndOfFileInBackgroundAndNotify'<br class="gmail_msg">
><br class="gmail_msg">
> So I've tried to specify it a bit more (notice the parens):<br class="gmail_msg">
> #selector(FileHandle.readToEndOfFileInBackgroundAndNotify())<br class="gmail_msg">
> Ambiguous reference to member 'readToEndOfFileInBackgroundAndNotify(forModes:)'<br class="gmail_msg">
><br class="gmail_msg">
> So I've tried to cast it to a Void -> Void func:<br class="gmail_msg">
> #selector(FileHandle.readToEndOfFileInBackgroundAndNotify as (Void) -> Void)<br class="gmail_msg">
> Ambiguous reference to member 'readToEndOfFileInBackgroundAndNotify(forModes:)'<br class="gmail_msg">
><br class="gmail_msg">
> How do I settle this one?<br class="gmail_msg">
><br class="gmail_msg">
> Method signatures in the generated header are:<br class="gmail_msg">
> open func readToEndOfFileInBackgroundAndNotify(forModes modes: [RunLoopMode]?)<br class="gmail_msg">
> open func readToEndOfFileInBackgroundAndNotify()<br class="gmail_msg">
</div></div>> _______________________________________________<br class="gmail_msg">
> swift-users mailing list<br class="gmail_msg">
> <a href="mailto:swift-users@swift.org" class="gmail_msg" target="_blank">swift-users@swift.org</a><br class="gmail_msg">
> <a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
swift-users mailing list<br class="gmail_msg">
<a href="mailto:swift-users@swift.org" class="gmail_msg" target="_blank">swift-users@swift.org</a><br class="gmail_msg">
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br class="gmail_msg">
</blockquote></div><br class="gmail_msg"></div></div></blockquote></div></div>