Files
swift-mirror/test/ModuleInterface/escapable.swiftinterface
Allan Shortlidge 4bc1abb4be Sema: Relax feature check for non-escapable types in swiftinterfaces.
Checking for the presence of a feature flag in order to allow syntax tends to
result in condfails when applied to `.swiftinterfaces`, since older compilers
that have this restriction may be used to compile newer interfaces where the
restriction has been lifted. Remove this restriction for non-escapable types
when typechecking an interface.

Resolves rdar://128577611
2024-05-24 13:53:50 -07:00

15 lines
463 B
Plaintext

// swift-interface-format-version: 1.0
// swift-compiler-version: Swift version 6.0
// swift-module-flags: -swift-version 5 -enable-library-evolution -module-name Library
// RUN: %target-swift-typecheck-module-from-interface(%s) -module-name Library
import Swift
import _Concurrency
import _StringProcessing
import _SwiftConcurrencyShims
// Allow Escapable to appear without -enable-experimental-feature NonescapableTypes
public struct S : Swift.Escapable {
}