File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -I %t -I %S/Inputs/custom-modules -parse-stdlib -parse-as-library -typecheck -verify -target x86_64 -apple-ios15.4-macabi %s
1
+ // RUN: %target-swift-frontend -I %t -I %S/Inputs/custom-modules -parse-stdlib -parse-as-library -typecheck -verify -target %target-cpu -apple-ios15.4-macabi %s
2
2
3
3
// REQUIRES: objc_interop
4
4
// REQUIRES: maccatalyst_support
@@ -7,7 +7,17 @@ import Available_NSObject
7
7
8
8
@available ( iOS 15 . 0 , * )
9
9
open class OverAvailableClass : NSBaseClass { }
10
- // expected-error @-1 {{initializer cannot be more available than enclosing scope}}
10
+ // expected-warning @-1 {{initializer cannot be more available than enclosing scope}}
11
11
// expected-note@-2 {{initializer implicitly declared here with availability of Mac Catalyst 13.1 or newer}}
12
12
// expected-note@-3 {{enclosing scope requires availability of Mac Catalyst 15.0 or newer}}
13
13
14
+ extension NSBaseClass {
15
+ @available ( iOS 15 . 0 , * )
16
+ // expected-warning@+3 {{_modify accessor cannot be more available than enclosing scope}}
17
+ // expected-note@+2 {{_modify accessor implicitly declared here with availability of Mac Catalyst 13.1 or newer}}
18
+ // expected-note@+1 {{enclosing scope requires availability of Mac Catalyst 15.0 or newer}}
19
+ var property : Int {
20
+ get { 1 }
21
+ set { }
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments