Files
swift-mirror/test/ModuleInterface/escaping_functions.swift
Becca Royal-Gordon 1f008fb0d0 [ModuleInterface] Enable module selectors by default
And update tests to use them.

This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130.

Fixes rdar://169749886.
2026-02-20 00:35:23 -08:00

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: }