[SR-10627] Source-breaking change in associated type inference #53027
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
source compatibility
swift 5.0
Additional Detail from JIRA
md5: a973e6979fc1e019488712b770c5752f
Issue Description:
(Copied from https://forums.swift.org/t/never-ending-compilation-involving-types-and-pats/24200)
The weird thing is that these are the following compilation results (in order that I tried them):
On Xcode 10.1 using Xcode 10.1 toolchain: code compiles nicely;
On Xcode 10.2 using Xcode 10.2 toolchain: code never finishes compiling (and spent few hours trying to minimize, compile and recompile the code);
On Xcode 10.2 using Xcode 10.1 toolchain: code doesn't compile and I get compilation errors (which actually led me to a solution below);
Using explicit typealiases resolves the problem:
The text was updated successfully, but these errors were encountered: