summaryrefslogtreecommitdiff
path: root/src/ast/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/types.hpp')
-rw-r--r--src/ast/types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/types.hpp b/src/ast/types.hpp
index b3208f8c..2e9608a5 100644
--- a/src/ast/types.hpp
+++ b/src/ast/types.hpp
@@ -243,6 +243,10 @@ public:
bool is_pointer() const { return m_data.is_Pointer(); }
bool is_tuple() const { return m_data.is_Tuple(); }
+ TypeRef clone() const {
+ return TypeRef(*this);
+ }
+
//::option<const TypeData::Tuple&> as_tuple() const {
// switch(m_data.tag())
// {