MantisBT - Ecere SDK
View Issue Details
0001136Ecere SDKcompilerpublic2017-07-08 04:482017-07-08 04:49
CaptainBlackton 
 
immediatecrashalways
newopen 
x86:linuxLinux Mint-
0.44.15 
 
0001136: Accessing Base Class Member Not Working
Running the code below gives this error:

   In function ‘__ecereProp_Unit_Get_hp’:
   error: ‘struct Unit’ has no member named ‘hp’
https://gist.github.com/jerstlouis/b866bc0d609769e47b4c639cc76609c1 [^]
No tags attached.
Issue History
2017-07-08 04:48CaptainBlacktonNew Issue
2017-07-08 04:49CaptainBlacktonNote Added: 0001457

Notes
(0001457)
CaptainBlackton   
2017-07-08 04:49   
class ResourceObject
{
   int hp;
}

class Unit : ResourceObject
{
   property int hp
   {
      /*
      set { *&hp = value; }
      get { return *hp; }
      */

      set { ResourceObject::hp = value; }
      get { return ResourceObject::hp; }
   }
}