We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attachment: Download
Xcode Version 9.4.1 (9F2000)
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2) Target: x86_64-apple-darwin17.7.0
(Also confirmed on 4.2-DEVELOPMENT-SNAPSHOT-2018-07-28-a at http://online.swiftplayground.run/)
md5: b2651170671df216008cba141bb6580f
is duplicated by:
relates to:
Issue Description:
This simple for-in clause causes an infinite loop:
var array = ["hi"] for text: String? in array { print("hello") }
It'll be resolved if you change String? to String.
See also the attached GIF.
However, I'm not really sure this is a bug or an expected behaviour.
The text was updated successfully, but these errors were encountered:
Interesting. @rudkx, this is related to your post about if-let on the forums, https://forums.swift.org/t/inconsistent-optional-injection-behavior/14628.
Sorry, something went wrong.
PR with fix: #34979
Landed fix on release/5.4 branch: #35386
typesanitizer
No branches or pull requests
Attachment: Download
Environment
Xcode Version 9.4.1 (9F2000)
Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
(Also confirmed on 4.2-DEVELOPMENT-SNAPSHOT-2018-07-28-a at http://online.swiftplayground.run/)
Additional Detail from JIRA
md5: b2651170671df216008cba141bb6580f
is duplicated by:
relates to:
Issue Description:
This simple for-in clause causes an infinite loop:
It'll be resolved if you change String? to String.
See also the attached GIF.
However, I'm not really sure this is a bug or an expected behaviour.
The text was updated successfully, but these errors were encountered: