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
OS: macOS 10.14.5
Xcode: 10.2.1
Swift: 5.0.1
md5: 450b9b21145f78dc00ed0ceaf915f4c7
Issue Description:
if 0.1 * 5 == 0.1 + 0.1 + 0.1 + 0.1 + 0.1 { }
This code makes compiler refused to compile and report
"The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions"
However such code
if 0.1 * 4 == 0.1 + 0.1 + 0.1 + 0.1 { }
is accepted without any error.
The text was updated successfully, but these errors were encountered:
cc @xedin (probably not worth tracking separately from the others)
Sorry, something went wrong.
I can't reproduce this one with either the Xcode 11.0 b5 compiler, or the current nightly toolchain.
No branches or pull requests
Environment
OS: macOS 10.14.5
Xcode: 10.2.1
Swift: 5.0.1
Additional Detail from JIRA
md5: 450b9b21145f78dc00ed0ceaf915f4c7
Issue Description:
This code makes compiler refused to compile and report
"The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions"
However such code
is accepted without any error.
The text was updated successfully, but these errors were encountered: