diff --git a/src/Type.cpp b/src/Type.cpp index 19d2b3d..9975181 100644 --- a/src/Type.cpp +++ b/src/Type.cpp @@ -5,6 +5,7 @@ Type::Type() { baseType = none; typeDefinition = nullptr; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, int indirectionIn) { @@ -12,6 +13,7 @@ Type::Type(ValueType typeIn, int indirectionIn) { baseType = typeIn; typeDefinition = nullptr; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, std::set traitsIn) { @@ -20,6 +22,7 @@ Type::Type(ValueType typeIn, std::set traitsIn) { traits = traitsIn; typeDefinition = nullptr; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(NodeTree* typeDefinitionIn, int indirectionIn) { @@ -27,6 +30,7 @@ Type::Type(NodeTree* typeDefinitionIn, int indirectionIn) { baseType = none; typeDefinition = typeDefinitionIn; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(NodeTree* typeDefinitionIn, std::set traitsIn) { @@ -35,6 +39,7 @@ Type::Type(NodeTree* typeDefinitionIn, std::set traitsIn) typeDefinition = typeDefinitionIn; traits = traitsIn; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, NodeTree* typeDefinitionIn, int indirectionIn, std::set traitsIn) { @@ -43,6 +48,7 @@ Type::Type(ValueType typeIn, NodeTree* typeDefinitionIn, int indirectio typeDefinition = typeDefinitionIn; traits = traitsIn; templateDefinition = nullptr; + returnType = nullptr; } Type::Type(ValueType typeIn, NodeTree* typeDefinitionIn, int indirectionIn, std::set traitsIn, std::vector parameterTypesIn, Type* returnTypeIn) { @@ -69,6 +75,7 @@ Type::Type(ValueType typeIn, NodeTree* templateDefinitionIn, std::set