E2004 Only read or write clause allowed in property declaration in __automated section (C++)
Go Up to Compiler Errors And Warnings (C++) Index
Storage specifiers stored, default, and nodefault are not allowed in property declarations in __automated sections.
Example:
struct__declspec(delphiclass) clxclass { int __fastcall Get(void); __automated: int __property ip1 = { read = Get }; // OK int __property ip2 = { read = Get, default = 42 }; // Error };