Skip to content

Commit

Permalink
Added property-related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kolovos committed Jun 7, 2024
1 parent 8a7eb4e commit 6a8cbc7
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
model M driver EMF {nsuri="http://www.eclipse.org/emf/2002/Ecore"};

var p : EPackage;
var c : EClass;

p = c.ePackage;
c = p.eClassifiers.op1();
c = p.eClassifiers.op2();

operation Any op1() : EClass {
// If I comment out the following line I get a "_NOTYPE cannot be assigned to EClass" error which doesn't look right
return new EClass;
// If I comment out the line above and uncomment the line below, I also get a "_NOTYPE cannot be assigned to EClass" error
// return self.op1();
}

operation Collection<EClassifier> op2() : EClass {
return new EClass;
}

0 comments on commit 6a8cbc7

Please sign in to comment.