Modified parameter 'self' is input only [message #1715287] |
Sat, 21 November 2015 00:16 |
Sivka Burka Messages: 2 Registered: November 2014 |
Junior Member |
|
|
Hi Guys
I am exercising with qvto and not sure why qvto editor reports "Modified parameter 'self' is input only" for
self.eAnnotations += object ECORE::EAnnotation{ source :=annsource;};
in
helper ECORE::EModelElement::getOrCreateEAnnForSource(in annsource: String): EAnnotation {
var eann: ECORE::EAnnotation := self.getEAnnotation(annsource);
if(eann=null){
self.eAnnotations += object ECORE::EAnnotation{ source :=annsource;};
};
return eann;
}
My expectation was that it is possible to modify self content in helper (...but not in query?). Am I missing something?
Thanks
Michael
[Updated on: Sat, 21 November 2015 18:04] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02573 seconds