mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
17 lines
650 B
Swift
17 lines
650 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name Test
|
|
// RUN: %FileCheck %s < %t.swiftinterface
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name Test
|
|
|
|
// This test fails if we suppress the @escaping attribute recursively
|
|
// when printing enum element parameter lists instead of only suppressing
|
|
// it when printing the immediate type of the enum payload.
|
|
|
|
public enum A {
|
|
case function(_: (@escaping () -> Void) -> Void)
|
|
}
|
|
|
|
// CHECK-LABEL: public enum A {
|
|
// CHECK-NEXT: case function((@escaping () -> Swift::Void) -> Swift::Void)
|
|
// CHECK-NEXT: }
|