Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14129] Simple expression fails to type check #56510

Closed
swift-ci opened this issue Jan 29, 2021 · 2 comments
Closed

[SR-14129] Simple expression fails to type check #56510

swift-ci opened this issue Jan 29, 2021 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14129
Radar rdar://problem/73775082
Original Reporter jasonbobier (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 12.4

An engineer gave it to me and I pasted it onto a playground to reproduce the failure.

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, TypeChecker
Assignee None
Priority Medium

md5: 8b03f85517ea884cc6c8f61c1d9a8529

Issue Description:

let seconds: TimeInterval = (3*60*60) + (24*60) + 31

produces:

the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

@typesanitizer
Copy link

@swift-ci create

@swift-ci
Copy link
Collaborator Author

Comment by Jason Bobier (JIRA)

This appears fixed in Swift 5.4.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

2 participants