[unrelated] Fix bad createLetExp 'common' type
diff --git a/plugins/org.eclipse.ocl.pivot/src/org/eclipse/ocl/pivot/utilities/PivotHelper.java b/plugins/org.eclipse.ocl.pivot/src/org/eclipse/ocl/pivot/utilities/PivotHelper.java
index 9e569b0..1ea5cf9 100644
--- a/plugins/org.eclipse.ocl.pivot/src/org/eclipse/ocl/pivot/utilities/PivotHelper.java
+++ b/plugins/org.eclipse.ocl.pivot/src/org/eclipse/ocl/pivot/utilities/PivotHelper.java
@@ -244,12 +244,10 @@
}
public @NonNull LetExp createLetExp(@NonNull Variable asVariable, @NonNull OCLExpression asInExpression) {
- Type commonType = metamodelManager.getCommonType(ClassUtil.nonNullState(asVariable.getType()), TemplateParameterSubstitutions.EMPTY,
- ClassUtil.nonNullState(asInExpression.getType()), TemplateParameterSubstitutions.EMPTY);
LetExp asLetExp = PivotFactory.eINSTANCE.createLetExp();
asLetExp.setOwnedVariable(asVariable);
asLetExp.setOwnedIn(asInExpression);;
- asLetExp.setType(commonType);
+ asLetExp.setType(asInExpression.getType());
asLetExp.setIsRequired(asInExpression.isIsRequired());
asLetExp.setOwnedVariable(asVariable);
return asLetExp;