Quellcode durchsuchen

enhanced type inferrer

Andreas Mülder vor 10 Jahren
Ursprung
Commit
f1421fcf23

+ 1 - 1
plugins/org.yakindu.sct.model.stext/src/org/yakindu/sct/model/stext/inferrer/STextTypeInferrer.java

@@ -44,7 +44,7 @@ public class STextTypeInferrer extends ExpressionsTypeInferrer {
 	public static final String MISSING_VALUE = "Need to assign a value to an event of type %s.";
 
 	public Object infer(VariableDefinition e) {
-		Type type = e.getType();
+		Type type = inferTypeDispatch(e.getType());
 		assertNotType(type, VARIABLE_VOID_TYPE, getType(VOID));
 		if (e.getInitialValue() == null)
 			return inferTypeDispatch(type);