1
1
// 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
3
3
4
4
// REQUIRES: OS=macosx
5
5
@@ -8,14 +8,14 @@ struct SetterConditionallyAvailable<T> {
8
8
var wrappedValue : T {
9
9
get { fatalError ( ) }
10
10
11
- @available ( macOS 10 . 10 , * )
11
+ @available ( macOS 10 . 51 , * )
12
12
set { fatalError ( ) }
13
13
}
14
14
15
15
var projectedValue : T {
16
16
get { fatalError ( ) }
17
17
18
- @available ( macOS 10 . 10 , * )
18
+ @available ( macOS 10 . 51 , * )
19
19
set { fatalError ( ) }
20
20
}
21
21
}
@@ -25,14 +25,14 @@ struct ModifyConditionallyAvailable<T> {
25
25
var wrappedValue : T {
26
26
get { fatalError ( ) }
27
27
28
- @available ( macOS 10 . 10 , * )
28
+ @available ( macOS 10 . 51 , * )
29
29
_modify { fatalError ( ) }
30
30
}
31
31
32
32
var projectedValue : T {
33
33
get { fatalError ( ) }
34
34
35
- @available ( macOS 10 . 10 , * )
35
+ @available ( macOS 10 . 51 , * )
36
36
_modify { fatalError ( ) }
37
37
}
38
38
}
@@ -41,7 +41,7 @@ struct Butt {
41
41
var modify_conditionally_available : Int {
42
42
get { fatalError ( ) }
43
43
44
- @available ( macOS 10 . 10 , * )
44
+ @available ( macOS 10 . 51 , * )
45
45
_modify { fatalError ( ) }
46
46
}
47
47
@@ -52,14 +52,14 @@ struct Butt {
52
52
var wrapped_modify_conditionally_available : Int
53
53
}
54
54
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{{}}
61
61
62
- if #available( macOS 10 . 10 , * ) {
62
+ if #available( macOS 10 . 51 , * ) {
63
63
x. modify_conditionally_available = 0
64
64
x. wrapped_setter_conditionally_available = 0
65
65
x. wrapped_modify_conditionally_available = 0
0 commit comments