variables of associations are not accessible in subclasses #988

Open
vahdat-ab opened this Issue Feb 4, 2017 · 0 comments

Projects

None yet

1 participant

@vahdat-ab
Member

Please consider the following example,

class A{
  0..1 sth-- * B;
}
class B{
}
class D{
  isA A;
  0..1 sth -- * B;
}

It generates the following code

  public B getB_B(int index)
  {
    B aB = (B)bs.get(index);
    return aB;
  }

The variable bs is not accessible in the class D, so there is an error. It's a private varibale in the superclass A.
There several other errors in other APIs in association with the variable bs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment