You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a For Loop and designating the output variable type as an optional causes the loop to repeat infinitely, without warning, blocking whatever thread from which it is being executed. The following is an example of such a loop:
This issue was particularly difficult to spot at first, as neither the compiler nor the run-time flagged this as an issue. At the very least, the Swift compiler should supply an infinite loop warning when this type of code is written.
The text was updated successfully, but these errors were encountered:
Environment
macOS 10.14.2 (18C54)
Xcode 10.1 (10B61)
Swift 4.2
iOS 12.1
Additional Detail from JIRA
md5: 7d00dc923db09215081ba8df4e706d89
duplicates:
Issue Description:
Creating a For Loop and designating the output variable type as an optional causes the loop to repeat infinitely, without warning, blocking whatever thread from which it is being executed. The following is an example of such a loop:
This issue was particularly difficult to spot at first, as neither the compiler nor the run-time flagged this as an issue. At the very least, the Swift compiler should supply an infinite loop warning when this type of code is written.
The text was updated successfully, but these errors were encountered: