Skip to content

Commit bd2ff38

Browse files
authored
Merge pull request #65186 from tshortli/maccatalyst-implicit-availability-test-5.9
[5.9] Tests: Fix attr_availability_maccatalyst_implicit.swift
2 parents 5fba3f4 + eff9425 commit bd2ff38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/attr/attr_availability_maccatalyst_implicit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ extension NSBaseClass {
1616
// expected-warning@+3 {{_modify accessor cannot be more available than enclosing scope}}
1717
// expected-note@+2 {{_modify accessor implicitly declared here with availability of Mac Catalyst 13.1 or newer}}
1818
// expected-note@+1 {{enclosing scope requires availability of Mac Catalyst 15.0 or newer}}
19-
var property: Int {
20-
get { 1 }
19+
var property: NSBaseClass {
20+
get { self }
2121
set {}
2222
}
2323
}

0 commit comments

Comments
 (0)