mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The autoclosures generated for the keypath-as-function feature were not added to the list of closures that needed captures computed. In top-level code, this caused a crash. Fixes rdar://problem/56055600.
3 lines
97 B
Swift
3 lines
97 B
Swift
// RUN: %target-swift-frontend %s -emit-silgen -o /dev/null
|
|
let _: ([Int]) -> Int = \[Int].count
|