[SR-7484] 4.1 regression: incorrect type inference on generic function #50027
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.1
type checker
Area → compiler: Semantic analysis
Environment
Builds fine on:
Xcode 9.2 (9C40b) on macOS 10.13.4 (17E199)
Fails to build on:
Xcode 9.3 (9E145) on macOS 10.13.4 (17E199)
Additional Detail from JIRA
md5: fd6bbe9d3a3ec89dfc1919e459f3c63c
Issue Description:
This code compiles correctly in Xcode 9.2, but fails in Xcode 9.3 (i.e. Swift 4.1). I bet it could be simplified more, but this is a fairly reduced test case. The original use case in real, production code is here.
The text was updated successfully, but these errors were encountered: