[Diagnostics] Simplify diagnoseAmbiguityWithFixes by removing AmbiguityKind.

This commit is contained in:
Holly Borla
2020-02-06 16:50:30 -08:00
committed by Pavel Yaskevich
parent 607c298493
commit 54706ba79b
3 changed files with 65 additions and 135 deletions

View File

@@ -1085,7 +1085,7 @@ func SR_6272_c() {
struct SR_6272_D: ExpressibleByIntegerLiteral {
typealias IntegerLiteralType = Int
init(integerLiteral: Int) {}
static func +(lhs: SR_6272_D, rhs: Int) -> Float { return 42.0 } // expected-note 2 {{candidate expects value of type 'Int' for parameter #2}}
static func +(lhs: SR_6272_D, rhs: Int) -> Float { return 42.0 }
}
func SR_6272_d() {