================
@@ -38,6 +59,12 @@ + (int)exportedClassMethod:(int)x
__attribute__((objc_direct, visibility("defaul
// FOO_M-NOT: @{{.*}}_thunk
#import "foo.h"
+// The setter takes the visibility of this redeclaration, which has no
+// attribute, not that of the exported readonly property in foo.h.
+@interface Foo ()
+@property (nonatomic, direct, readwrite) int counter;
----------------
ahatanak wrote:
Could you add a test for the reverse of `counter`, i.e., the readonly property
in the primary interface is hidden and the readwrite redeclaration in the
extension is default? The getter would stay hidden and the setter would be
exported.
https://github.com/llvm/llvm-project/pull/242130
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits