소스 검색

enhanced type inferrer

Andreas Mülder 10 년 전
부모
커밋
f1421fcf23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/org.yakindu.sct.model.stext/src/org/yakindu/sct/model/stext/inferrer/STextTypeInferrer.java

+ 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);