title: Function calling unambiguous or a Xcode 8 bug?
body: <p>Let's come to the code directly </p>
  
  <pre><code>//funcA
  func greet(person: String) -&gt; String {
      return "Hello, " + person + "!"
  }
  
  //funcB
  func greetAgain(person: String) -&gt; String {
      return "Hello again, " + person + "!"
  }
  
  //funcC
  func greet(person: String, alreadyGretted: Bool) -&gt; String{
      if alreadyGretted {
          return greetAgain(person: person)
      } else {
          return greet(person: person)
      }
  }
  
  //selectPrint
  print(greet(person: "Tim", alreadyGretted: true))
  
  //funcD
  func greet(guy: String) {
      print("Hello, \(guy)")
  }
  
  greet(guy: "Dave")
  </code></pre>
  
  <p>function in funcA and funcB are all sending greetings; funcC will fist check weather a person have been greeted. If so, function in funcA will be invoked otherwise function in funcB will be called. </p>
  
  <p>Now problems comes when I write the function in funcD, The compiler says it confused </p>
  
  <p><a href="https://i.stack.imgur.com/IpciA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IpciA.png" alt="enter image description here"></a></p>
  
  <p>Issue observed: </p>
  
  <ol>
  <li><p>the argument label (defaulted as the parameter name, "guy") is different with all previous functions (shouldn't have the unambiguous problem)</p></li>
  <li><p>the auto fill list from xCode regionalizes this function signature </p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/kjZIW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kjZIW.png" alt="enter image description here"></a></p>
  
  <ol start="3">
  <li>Although, it gives out the compiler error but the code still complies and seems running correctly</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/c1vj8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c1vj8.png" alt="enter image description here"></a></p>
  
  <p><strong>Question:</strong> Whether my code is incorrect or the playground in Xcode8 has a bug?</p>
  
  <p>BTW: If the selectPrint line is deleted, the error is gone with it. </p>
  
  <p>Thanks</p>