Why does a subclass @property with no corresponding ivar hide superclass ivars?

后端 未结 2 1393
-上瘾入骨i
-上瘾入骨i 2020-12-06 10:57

The following seems simple enough. There\'s a superclass with an ivar, and a subclass which accesses the (@protected) superclasses ivar:

// Testclass.h    
@         


        
2条回答
  •  暖寄归人
    2020-12-06 11:39

    LLVM compiles the source without complaints, switch to LLVM: Select target → Get Info → Build → C/C++ Compiler Version → LLVM 1.5. From my limited experience it’s a better compiler anyway. No idea why GCC behaves the way it does – interesting catch.

提交回复
热议问题