Weird conundrum… paste this into an Xcode Playground and run it - all should be valid. Then comment out either function and run it, still valid (!?!). So if the one call is valid for either function, then there is a problem. Yeah, you can print(“this one”) in a func to find out which is called for your particular setup, but there is a deeper issue when a single call works for either function.
//
// Problem in Swift or Xcode?
//
// So... which function?
//
func whichFunction( a: Int, _: Int = 9 ) { /* diabolical code to destroy the world */ }
func whichFunction( a: Int, _: Int? ) { /* silly code to print out "Hello, World!" */ }
// Which func of the above two does the following call?
//
whichFunction(a: 6, 7)
//
// Not obvious, even more, the above call works (no complaints by
// Xcode) if you comment out either whichFunction and run it, so
// the single call is capable of envoking either side-by-side function !?
//
// So... which function?
//
//
print("So was it \"Hello World!\"... or \"Goodbye, World!\"?")
//
// Just sayin'...