mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
15 lines
463 B
Plaintext
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 {
|
|
}
|