No. oclAsType() returns either the source object or invalid. It just
changes the static type.
You'll see the same in Java. The result of ((X)x).getClass() is
unaffected by X unless X is incompatible in which case you get a CCE.
[In due course 1.oclType() will become Integer again. UnlimitedNatural
will be dis-integrated with the numeric system requiring explicit
On 25/04/2014 15:16, Klaas Gadeyne wrote:
> latest nightly build gives me this result in the xtext ocl console
> I was expecting that the second expression would return Real?