diff --git a/core/codegen/platform/src/main/java/org/overture/codegen/assistant/TypeAssistantCG.java b/core/codegen/platform/src/main/java/org/overture/codegen/assistant/TypeAssistantCG.java
index <HASH>..<HASH> 100644
--- a/core/codegen/platform/src/main/java/org/overture/codegen/assistant/TypeAssistantCG.java
+++ b/core/codegen/platform/src/main/java/org/overture/codegen/assistant/TypeAssistantCG.java
@@ -341,7 +341,11 @@ public class TypeAssistantCG extends AssistantBase
 		} else if(basicType instanceof ANatNumericBasicTypeCG)
 		{
 			return new ANatBasicTypeWrappersTypeCG();
-		} else if (basicType instanceof ARealNumericBasicTypeCG)
+		} else if(basicType instanceof ARatNumericBasicTypeCG)
+		{
+			return new ARatBasicTypeWrappersTypeCG();
+		}
+		else if (basicType instanceof ARealNumericBasicTypeCG)
 		{
 			return new ARealBasicTypeWrappersTypeCG();
 		} else if (basicType instanceof ACharBasicTypeCG)
Fix to IR type assistant

Wrapper type construction did not take rational numbers into account
Related to issue #<I>