[SR-13415] Xcode 12b5: source incompatibility w/ generic overloads & trailing closures #55856
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
declarations
Feature: declarations
func
Feature → declarations: Functions
overload resolution
Area → compiler → type checker: Overload resolution (ranking)
regression
swift 5.9
type checker
Area → compiler: Semantic analysis
unexpected behavior
Bug: Unexpected behavior or incorrect output
Environment
Xcode 12b5 (12A8189h)
macOS 11.0b4 (20A5343i)
Additional Detail from JIRA
md5: be271db21582958117b1f424ae61ac39
Issue Description:
I'm not sure if this a regression or a case of ill-formed code no longer being accepted.
Part of our codebase uses ReactiveSwift which defines types similar to the following:
I just noticed that our own client code, which has "worked" for several releases, no longer compiles in Xcode 12b5. It looks more or less like this:
The really weird thing is it compiles if I remove the seemingly unrelated overload 3 that takes a key path.
I wonder if this might be related to the recent forward scanning trailing closures changes?
The text was updated successfully, but these errors were encountered: