Commit 41cf0856 authored by Martti Käärik's avatar Martti Käärik
Browse files

Declare CastDataUse variables using base type (this is how it's sliced currently)

parent 2fbca436
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1611,7 +1611,11 @@ public class JUnitTestGenerator extends Renderer {
			else
				varName += "_";
			varName += prefix + "datause_" + (dataUseVariables.size() + 1);
			DataType type = d.resolveDataType();
			DataType type = null;
			if (e instanceof CastDataUse)
				type = d.resolveBaseDataType();
			else
				type = d.resolveDataType();
			boolean isTime = false;
			if (type == null && d instanceof PredefinedFunctionCall) {
				// TODO move this to meta-model?