[SR-6943] Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
error regression when trying to build with Xcode 9.3 beta
#49491
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
Attachment: Download
Environment
Xcode 9.3 beta 1 & 2, macOS 10.13.3
Additional Detail from JIRA
md5: b4a7bd5d5c461d567626e4df37a4e043
Issue Description:
I have an project which is built fine in Xcode 9.2. However when I try to build it with Xcode 9.3 beta, there is an `Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions` error occur.
The expression that cause this error has some sub-expressions which may result the problem. It includes getting a value from the nested property of a Generic Constrained type and some expressions around severals operators
I attached a sample project which can reproduce the problem. However since I saw this error on the code which related to 3rd party library so it need to be run some command which I wrote the instructions in the `README.md` file
Please note that the same code was built successfully on Xcode 9.2 so I think this is a regression over Xcode 9.3 beta and Swift 4.1 compiler
The text was updated successfully, but these errors were encountered: