swift
c884068b - [ConstraintSystem] Tally implicit optional wraps into impact of pointer mismatch

Commit
5 years ago
[ConstraintSystem] Tally implicit optional wraps into impact of pointer mismatch Impact of cases where pointer types mismatch after implict optional wrap(s) should be higher than mismatch alone. Distinguishing that helps to disambiguate following case (and other similar ones) without using ranking: ```swift func foo(_: UnsafePointer<Int>) {} func foo(_: UnsafePointer<Int>?) {} func test(_ ptr: UnsafePointer<Float>) { foo(ptr) } ```
Author
Parents
Loading