OclType and oclAsType issues [message #665974] |
Mon, 18 April 2011 08:25  |
Eclipse User |
|
|
|
Hi,
I am trying to do the following:
myClass := myMetaModel.rootObjects()[EClass]->asSequence()->first();
someObj.oclAsType(myClass);
The type checker rejects the second statement. The signature of oclAsType suggests that it requires an OclType. Isn't that removed from the new OCL spec? What am I supposed to cast myClass to, to make the typechecker happy?
thanks
|
|
|
Re: OclType and oclAsType issues [message #666036 is a reply to message #665974] |
Mon, 18 April 2011 13:38  |
Eclipse User |
|
|
|
Hi Al
oclAsType, as typically implemented, requires a type literal, e.g. MyClass.
oclAsType, as specified, is unimplementable; type expressions are not
adequately defined.
Regards
Ed Willink
On 18/04/2011 13:26, Al wrote:
> Hi,
> I am trying to do the following:
>
> myClass := myMetaModel.rootObjects()[EClass]->asSequence()->first();
>
> someObj.oclAsType(myClass);
>
>
> The type checker rejects the second statement. The signature of
> oclAsType suggests that it requires an OclType. Isn't that removed
> from the new OCL spec? What am I supposed to cast myClass to, to make
> the typechecker happy?
>
> thanks
>
|
|
|
Powered by
FUDForum. Page generated in 0.02878 seconds