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; | |
} | |
} |