Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0209-rdar56055600.swift
Brent Royal-Gordon eca51d4d53 Fix keypath-as-function crasher
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.
2019-10-08 18:11:41 -07:00

3 lines
97 B
Swift

// RUN: %target-swift-frontend %s -emit-silgen -o /dev/null
let _: ([Int]) -> Int = \[Int].count