Files
swift-mirror/test/embedded/closures.swift

12 lines
237 B
Swift

// RUN: %target-swift-emit-ir %s -parse-stdlib -enable-experimental-feature Embedded -wmo
// REQUIRES: swift_in_compiler
public func foo<Result>(_ body: () -> Result) -> Result {
return body()
}
public func main() {
foo() { }
}