-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfregressionswift 5.0type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
| Previous ID | SR-10161 |
| Radar | None |
| Original Reporter | @an0 |
| Type | Bug |
Additional Detail from JIRA
| Votes | 1 |
| Component/s | Compiler |
| Labels | Bug, 5.0Regression, TypeChecker |
| Assignee | None |
| Priority | Medium |
md5: b4414020ec7c32c7070fbbbb2ababd19
Issue Description:
This is a regression in Swift 5. It compiles fine with Swift 4.2.1.
let a = 0
let b = 0
let c = 0
// error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
[(-b + c) / (2 * a), (-b - c) / (2 * a)]Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfregressionswift 5.0type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis