mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When we infer a requirement from the result type of a function, don't warn if that requirement was also stated explicitly. This has been a point of confusion since we introduced the redundancy warnings, because users don't consider to result type to be an "input" to the function in the way the compiler does. So, while technically it is "correct" to warn, it's unintuitive---so stop. Fixes SR-5072 / rdar://problem/31357967.
65 KiB
65 KiB