Browse Source

allow assignment of value null to variable type void

Andreas Mülder 13 years ago
parent
commit
4f18bdb314

+ 2 - 0
plugins/org.yakindu.base.types/src/org/yakindu/base/types/impl/BaseTypeSystemAccessImpl.java

@@ -56,6 +56,8 @@ public class BaseTypeSystemAccessImpl implements ITypeSystemAccess {
 	public boolean isAssignable(Type varType, Type valType) {
 		if (varType == null && valType == null)
 			return true;
+		if (isVoid(varType) && valType == null)
+			return true;
 		Type combine = combine(varType, valType);
 		if (combine == null) {
 			return false;