[SR-15234] Labeled do statements allow continue
which lead to loop
#57556
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Target: x86_64-apple-macosx11.0
Additional Detail from JIRA
md5: 02cdee0cfdd19bb2c07b56eb9a257c59
duplicates:
Issue Description:
In Swift5.5, this code just works, and prints 0 to 9.
Since unlabeled `do` doesn't allow `continue`, I suspect this is remnant of era when `do-while` was used. It seems incorrect behavior today.
The text was updated successfully, but these errors were encountered: