[SR-2102] Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions #44710
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
performance
regression
swift 3.0
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Mac OS X 10.11.5, Xcode 8.0 beta 2, MacBook Pro (Retina, 15-inch, Mid 2014)
Apple Swift version 3.0 (swiftlang-800.0.33.1 clang-800.0.31)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: 22daec4b18ddda35440f98e4c5e2964f
Issue Description:
Swift 3.0 doesn't seem to be able to complete type-checking on a file similar to one that could be type-checked fine in Swift 2.2.
Attached:
CalculatorBrain-ideal.swift: This is a file I'd expect to finish type-checking just fine with the ideal expression of my code.
CalculatorBrain-works.swift: This is a version of the file that does work, but required me to add more typing information.
CalculatorBrain-broke.swift: This is a version of the file that is just barely too much for the type-checker on my system.
The text was updated successfully, but these errors were encountered: