using oclAsType with inheritance and overriding #68
Unanswered
phillipabennett
asked this question in
Q&A
Replies: 1 comment
-
|
Unfortunately, the behaviour described in the OCL specification is not supported. I'm going to open an issue for this. I tried using a let-expression, but |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
According to the OMG specification for OCL (section 7.5.8. for OCL 2.4),
In USE, say we have:
In class B, using
self.oclAsType(A).op()
gives the following error
Target type
A' is not a subtype of the source expression's typeB'Is is that the USE tool does not implement calling an overridden operation in a superclass?
How can I get access to the operation in the superclass?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions