summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.hpp')
-rw-r--r--src/types.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp
index 7c026500..500e03f7 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -182,6 +182,7 @@ public:
bool is_tuple() const { return m_class == TUPLE; }
const ::std::string& type_param() const { assert(is_type_param()); return m_path[0].name(); }
AST::Path& path() { assert(is_path()); return m_path; }
+
const AST::Path& path() const { assert(is_path()); return m_path; }
::std::vector<TypeRef>& sub_types() { return m_inner_types; }
const ::std::vector<TypeRef>& sub_types() const { return m_inner_types; }