-
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 itselfperformanceregressionswift 5.0type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis
Description
| Previous ID | SR-10229 |
| Radar | None |
| Original Reporter | gcampos (JIRA User) |
| Type | Bug |
Environment
MacOS
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, 5.0Regression, Performance, TypeChecker |
| Assignee | None |
| Priority | Medium |
md5: 75e1ad8611675120f730a733cc525897
Issue Description:
On swift 5.0
This code doesn't compile due to error "Compiler is unable to type check this expression in reasonable time"
import Foundation
let padding: CGFloat = 1
let stroke: CGFloat = 15
let origin: CGFloat = 2
let handleViewHeight: CGFloat = 1
_ = CGPoint(x: 1, y: (origin + (padding + handleViewHeight/2 + stroke/2))/1.75)But on swift 4.2 compiles without any problem.
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 itselfperformanceregressionswift 5.0type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysis