mirror of
https://github.com/apple/swift.git
synced 2026-10-14 15:51:20 +02:00
11 lines
380 B
Swift
11 lines
380 B
Swift
// {"kind":"typecheck","original":"3316325f","signature":"(anonymous namespace)::Traversal::doIt(swift::Expr*)","signatureNext":"Expr::walk"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
func a(b: [UInt8], c: () -> Int) {
|
|
let d = c()
|
|
e
|
|
{
|
|
case: let f = stride(from: 0 to: b.count, by: d).map { b[$0...].map { String($0 } .joined }
|
|
g .<#expression#>
|
|
}
|
|
}
|