Skip to content

Commit eff9425

Browse files
committed
Tests: Fix attr_availability_maccatalyst_implicit.swift
Apparently, even though the test requires maccatalyst_support the standard library for the macCatalyst target triple seems to be inaccessible. Resolves rdar://108044465
1 parent bc1a2da commit eff9425

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)