mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Usage of Span was temporarily behind an experimental feature flag. Now that SE-0447 has been accepted, remove the experimental feature flag and allow Span usage everywhere. Implements rdar://144819992.
13 lines
590 B
Swift
13 lines
590 B
Swift
// Checks that in Embedded Swift, we allow using stdlib types even when they
|
|
// have declared availability to be higher than our macOS deployment target.
|
|
|
|
// RUN: %target-typecheck-verify-swift -target arm64-apple-macos14 -enable-experimental-feature Embedded
|
|
// RUN: %target-typecheck-verify-swift -target arm64-apple-macos15 -enable-experimental-feature Embedded
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
// REQUIRES: OS=macosx
|
|
|
|
func f(_: Span<Int>) { } // Span is @available(SwiftStdlib 6.1, *)
|
|
func g(_: Int128) { } // Int128 is @available(SwiftStdlib 6.0, *)
|