blob: 3810cf934461929a85e5ecfb348c3be4ba0d35a9 [file] [log] [blame]
transformation inoutcontextparam;
modeltype ECORE uses 'http://www.eclipse.org/emf/2002/Ecore';
mapping main(in model: ecore::EPackage): ecore::EPackage {
name := 'wrong';
end {
result.foo();
}
}
mapping inout ecore::EPackage::foo() : ecore::EPackage {
init {
self.name := 'right';
result := self;
}
}