From ba61031285402285e88a16f3788c20f455acc8e3 Mon Sep 17 00:00:00 2001 From: "John Hodge (sonata)" Date: Sun, 18 Jan 2015 12:56:30 +0800 Subject: Added support for associated types in impl blocks --- src/ast/ast.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ast/ast.cpp') diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index c8cf8188..696978fb 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -327,7 +327,8 @@ SERIALISE_TYPE(TypeParam::, "AST_TypeParam", { ::std::ostream& operator<<(::std::ostream& os, const GenericBound& x) { - return os << "GenericBound(" << x.m_argname << "," << x.m_lifetime << "," << x.m_trait << ")"; + //return os << "GenericBound(" << x.m_argname << "," << x.m_lifetime << "," << x.m_trait << ")"; + return os << x.m_argname << ": ('" << x.m_lifetime << " + " << x.m_trait << ")"; } SERIALISE_TYPE_S(GenericBound, { s.item(m_argname); -- cgit v1.2.3