11// RUN: %empty-directory(%t)
2- // RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.9 -typecheck -verify %s
2+ // RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.50 -typecheck -verify %s
33
44// REQUIRES: OS=macosx
55
@@ -8,14 +8,14 @@ struct SetterConditionallyAvailable<T> {
88 var wrappedValue : T {
99 get { fatalError ( ) }
1010
11- @available ( macOS 10 . 10 , * )
11+ @available ( macOS 10 . 51 , * )
1212 set { fatalError ( ) }
1313 }
1414
1515 var projectedValue : T {
1616 get { fatalError ( ) }
1717
18- @available ( macOS 10 . 10 , * )
18+ @available ( macOS 10 . 51 , * )
1919 set { fatalError ( ) }
2020 }
2121}
@@ -25,14 +25,14 @@ struct ModifyConditionallyAvailable<T> {
2525 var wrappedValue : T {
2626 get { fatalError ( ) }
2727
28- @available ( macOS 10 . 10 , * )
28+ @available ( macOS 10 . 51 , * )
2929 _modify { fatalError ( ) }
3030 }
3131
3232 var projectedValue : T {
3333 get { fatalError ( ) }
3434
35- @available ( macOS 10 . 10 , * )
35+ @available ( macOS 10 . 51 , * )
3636 _modify { fatalError ( ) }
3737 }
3838}
@@ -41,7 +41,7 @@ struct Butt {
4141 var modify_conditionally_available : Int {
4242 get { fatalError ( ) }
4343
44- @available ( macOS 10 . 10 , * )
44+ @available ( macOS 10 . 51 , * )
4545 _modify { fatalError ( ) }
4646 }
4747
@@ -52,14 +52,14 @@ struct Butt {
5252 var wrapped_modify_conditionally_available : Int
5353}
5454
55- func butt( x: inout Butt ) { // expected-note* {{}}
56- x. modify_conditionally_available = 0 // expected-error{{only available in macOS 10.10 or newer}} expected-note{{}}
57- x. wrapped_setter_conditionally_available = 0 // expected-error{{only available in macOS 10.10 or newer}} expected-note{{}}
58- x. wrapped_modify_conditionally_available = 0 // expected-error{{only available in macOS 10.10 or newer}} expected-note{{}}
59- x. $wrapped_setter_conditionally_available = 0 // expected-error{{only available in macOS 10.10 or newer}} expected-note{{}}
60- x. $wrapped_modify_conditionally_available = 0 // expected-error{{only available in macOS 10.10 or newer}} expected-note{{}}
55+ func butt( x: inout Butt ) { // expected-note * {{}}
56+ x. modify_conditionally_available = 0 // expected-error {{only available in macOS 10.51 or newer}} expected-note{{}}
57+ x. wrapped_setter_conditionally_available = 0 // expected-error {{only available in macOS 10.51 or newer}} expected-note{{}}
58+ x. wrapped_modify_conditionally_available = 0 // expected-error {{only available in macOS 10.51 or newer}} expected-note{{}}
59+ x. $wrapped_setter_conditionally_available = 0 // expected-error {{only available in macOS 10.51 or newer}} expected-note{{}}
60+ x. $wrapped_modify_conditionally_available = 0 // expected-error {{only available in macOS 10.51 or newer}} expected-note{{}}
6161
62- if #available( macOS 10 . 10 , * ) {
62+ if #available( macOS 10 . 51 , * ) {
6363 x. modify_conditionally_available = 0
6464 x. wrapped_setter_conditionally_available = 0
6565 x. wrapped_modify_conditionally_available = 0
0 commit comments