blob: 34967dc85c9e0cb8913564a905788cf79172c631 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
func foo(_ msg: Int) {}
func foo(_ msg: Double) {}
func rdar38309176(_ errors: inout [String]) {
foo("error: \(errors[0])") // expected-error {{cannot invoke 'foo' with an argument list of type '(String)'}}
// expected-note@-1 {{overloads for 'foo' exist with these partially matching parameter lists: (Double), (Int)}}
}