mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
396a6a8fe6
Promote it from an experimental feature. rdar://155607927
18 lines
574 B
Swift
18 lines
574 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx15.0
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
func foo(x: InlineArray<3, Int>) {}
|
|
// expected-error@-1 {{'InlineArray' is only available in}}
|
|
// expected-note@-2 {{add '@available' attribute to enclosing global function}}
|
|
|
|
func bar(x: [3 of Int]) {}
|
|
// expected-error@-1 {{'InlineArray' is only available in}}
|
|
// expected-note@-2 {{add '@available' attribute to enclosing global function}}
|
|
|
|
@available(SwiftStdlib 9999, *)
|
|
func baz(x: InlineArray<3, Int>) {}
|
|
|
|
@available(SwiftStdlib 9999, *)
|
|
func qux(x: [3 of Int]) {}
|