diff --git a/core/codegen/platform/src/main/java/org/overture/codegen/trans/patterns/PatternTrans.java b/core/codegen/platform/src/main/java/org/overture/codegen/trans/patterns/PatternTrans.java
index <HASH>..<HASH> 100644
--- a/core/codegen/platform/src/main/java/org/overture/codegen/trans/patterns/PatternTrans.java
+++ b/core/codegen/platform/src/main/java/org/overture/codegen/trans/patterns/PatternTrans.java
@@ -119,6 +119,14 @@ public class PatternTrans extends DepthFirstAnalysisAdaptor
 		{
 			return;
 		}
+		
+		if (pattern  instanceof AIgnorePatternCG)
+		{
+			AIdentifierPatternCG idPattern = getIdPattern(config.getIgnorePatternPrefix());
+			transAssistant.replaceNodeWith(node.getTarget(), idPattern);
+			transAssistant.replaceNodeWith(pattern, idPattern.clone());
+			return;
+		}
 
 		DeclarationTag tag = fetchTag(node);
Fix: missing handling of the ignore pattern for local pattern assignments