diff options
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r-- | src/ast/ast.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp index 20d28467..579cb058 100644 --- a/src/ast/ast.hpp +++ b/src/ast/ast.hpp @@ -68,9 +68,11 @@ public: { }
bool is_trait() const { return m_lifetime == ""; }
- TypeRef& type() { return m_trait; }
+ const ::std::string& name() const { return m_argname; }
const TypeRef& type() const { return m_trait; }
+ TypeRef& type() { return m_trait; }
+
friend ::std::ostream& operator<<(::std::ostream& os, const GenericBound& x);
SERIALISABLE_PROTOTYPES();
};
|