mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
9 lines
444 B
Swift
9 lines
444 B
Swift
// {"kind":"typecheck","original":"4dcd6877","signature":"swift::Parser::parseStmtForEach(swift::LabeledStmtInfo)","signatureAssert":"Assertion failed: (InBindingPattern == PatternBindingState::NotInBinding && \"for-each loops cannot exist inside other patterns\"), function parseStmtForEach"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
guard
|
|
let if <#expression#> {
|
|
for <#pattern#> in <#expression#> {
|
|
}
|
|
} else {
|
|
}
|