[SR-2259] New "expression was too complex" error in swiftlang-800.0.41.2 (Xcode 8 beta 4) #44866
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 3.0
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Apple Swift version 3.0 (swiftlang-800.0.41.2 clang-800.0.36)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: cab3005164fef8464fdf85648ba7fdfa
Issue Description:
The code below (also attached) compiles without errors under Swift 2.x and Swift 3.0 betas before the latest, beta 4:
However, in the Swift 3.0 compiler that's included in Xcode 8 beta 4, line 11 produces the following error:
Extracting the upper bound of the closed range expression into a separate variable works around the issue.
The text was updated successfully, but these errors were encountered: