XBase operators marked as error in DomainModel example project [message #716244] |
Tue, 16 August 2011 18:46 |
David Wegener Messages: 1445 Registered: July 2009 |
Senior Member |
|
|
I'm trying to go through the DomainModel example included with XText 2.0.1 but the generated text editor marks operators other than assignments as errors in the model editor. The error is always a variant of "Couldn't resolve reference to JvmIdentifiableElement 'x'. where 'x' is replaced by the operator being used.
If you create the following dmodel file when running the example:
entity test {
public op anOp (int number) : int {
var temp = 100;
temp = number + temp;
temp += number;
return temp * number;
}
}
The initial assignment temp = 100 is accepted.
The '+' in number + temp, the '+=' in number += number, and the '*' in temp * number are marked with the red squiggle and hovering over them give you the "Couldn't resolve references to JvmIdentifiableElement" message.
[Updated on: Tue, 16 August 2011 18:47] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03573 seconds