<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="">If either function had the correct signature and was being properly disambiguated there would not be a diagnostic popped. Can you provide an example of this?<div class=""><br class=""></div><div class="">~Robert Widmann</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 24, 2017, at 8:58 PM, Nevin Brackett-Rozinsky <<a href="mailto:nevin.brackettrozinsky@gmail.com" class="">nevin.brackettrozinsky@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">The new diagnostic is fine, the problem is that there should not be an error at all. If there is only one function with the proper signature, the compiler should not invent a non-existent ambiguity.<div class=""><br class=""></div><div class="">The situation I encountered involves functions of different arities, so it should be straightforward to select the correct one, yet it still fails to compile. I'd like to make it work.</div><div class=""><br class=""></div><div class="">Nevin</div><div class=""><br class=""><br class="">On Sunday, September 24, 2017, Robert Widmann <<a href="mailto:devteam.codafi@gmail.com" class="">devteam.codafi@gmail.com</a>> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This appears to be resolved (in fact, I remember improving this some time ago). I get a much better diagnostic now<br class="">
<br class="">
> error: repl.swift:4:16: error: use of 'min' refers to instance method 'min()' rather than global function 'min' in module 'Swift'<br class="">
> return min(1,2)<br class="">
> ^<br class="">
><br class="">
> repl.swift:4:16: note: use 'Swift.' to reference the global function in module 'Swift'<br class="">
> return min(1,2)<br class="">
> ^<br class="">
> Swift.<br class="">
<br class="">
What version of Swift are you still seeing the bad diagnostic in?<br class="">
<br class="">
~Robert Widmann<br class="">
<br class="">
> On Sep 24, 2017, at 12:03 PM, Nevin Brackett-Rozinsky via swift-dev <<a href="javascript:;" onclick="_e(event, 'cvml', 'swift-dev@swift.org')" class="">swift-dev@swift.org</a>> wrote:<br class="">
><br class="">
> I recently got bit by SR-2450, and I’d like to try to fix it. However, I’ve never worked on the compiler before and I have some questions:<br class="">
><br class="">
> 1. Is this a reasonable first bug to tackle?<br class="">
> 2. What resources are available for newcomers to the Swift project?<br class="">
> 3. What will I need to learn about in order to address SR-2450?<br class="">
><br class="">
> Thanks,<br class="">
><br class="">
> Nevin<br class="">
> ______________________________<wbr class="">_________________<br class="">
> swift-dev mailing list<br class="">
> <a href="javascript:;" onclick="_e(event, 'cvml', 'swift-dev@swift.org')" class="">swift-dev@swift.org</a><br class="">
> <a href="https://lists.swift.org/mailman/listinfo/swift-dev" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-dev</a><br class="">
<br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>