Community
Participate
Working Groups
While the specification does not explicitly prohibits usage of ReturnExp, RaiseExp, BreakExp and ContinueExp in the following cases, all of them seem to be erroneous and should be treated as such. ------------------------------ modeltype Ecore uses "http://www.eclipse.org/emf/2002/Ecore"; transformation T1(in inModel : Ecore, out outModel : Ecore) { main() { while (true) { return break; return continue; return raise "aa"; }; var a = return; var b = return (return); return return; } }
Created attachment 243418 [details] The patch reports an error for cases where raise/return/break/continue is ised as an part of an expression
Created attachment 243419 [details] A unit test for the patch