Files
swift-mirror/test/Interpreter/closure_zero_size_allocation.swift

19 lines
327 B
Swift

// RUN: %target-run-simple-swift(-O)
// REQUIRES: executable_test
// rdar://92418090
protocol P {
var covariantSelfPropClosure: ((Self) -> Void) -> Void { get }
}
extension P {
var covariantSelfPropClosure: ((Self) -> Void) -> Void { { $0(self) } }
}
struct S: P {}
let p: P = S()
p.covariantSelfPropClosure { _ in }