Which version of Eclipse OCL are you using? Some versions complain about
a variable for a type.
It should work, but "A.b" seems an unlikely start. A seems to be an
EClass rather than an instance.
Are you sure that the meta-model is in scope? I would expect to see a
MM2::C qualification to specify the package.
On 08/07/2011 18:56, firstname.lastname@example.org wrote:
> Let's say I have an EClass A with a EReference b of the type EClass C
> that contains an EAttribute d.
> A and C are part of different metamodels.
> So when I type the following into the Interactive OCL console:
> "Unrecognized variable: (C)" is returned.
> Can't I use an external EClass's features in an OCL expression or am I
> missing something?