Browse Source

Fixed issue where the constructor attempted to set param values on the class directly and not in the internal state.

Casper Thule 6 years ago
parent
commit
8a1525ecc1

+ 1 - 1
DSL_SemanticAdaptation/be.uantwerpen.ansymo.semanticadaptation.cg.cpp/src/be/uantwerpen/ansymo/semanticadaptation/cg/cpp/generation/ParamConditionSwitch.xtend

@@ -31,7 +31,7 @@ class ParamConditionSwitch extends GeneralConditionSwitch {
 		val retInfo = new ReturnInformation();
 		retInfo.code = 
 		'''
-			this->«gVar.name» = «doSwitchRes.code»;
+			this->internalState.«gVar.name» = «doSwitchRes.code»;
 		'''
 		return retInfo;
 	}