Unresolved operation '<' for 'Ecore::ecore::EInt' [message #666393] |
Wed, 20 April 2011 05:53  |
Eclipse User |
|
|
|
Hi,
I get the error "Unresolved operation '<' for 'Ecore::ecore::EInt'" trying to use the "sortedBy" operation.
My expression evaluates using the old Interactive OCL console but not the new Interactive Xtext OCL console or the generated model validation.
A sample metamodel looks like this:
module _'test.ecore'
import ecore : 'http://www.eclipse.org/emf/2002/Ecore#/';
package test : test = 'http://test/test'
{
class Test
{
attribute ordinal : ecore::EInt[?] { ordered };
operation test() : Test[*]
{
body: (Test.allInstances())->sortedBy(ordinal);
}
}
}
Any help is appreciated.
Best regards,
Joern
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06895 seconds