diff options
Diffstat (limited to 'src/convert/ast_iterate.cpp')
-rw-r--r-- | src/convert/ast_iterate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/convert/ast_iterate.cpp b/src/convert/ast_iterate.cpp index 46ca4458..a2fed087 100644 --- a/src/convert/ast_iterate.cpp +++ b/src/convert/ast_iterate.cpp @@ -337,9 +337,11 @@ void CASTIterator::handle_enum(AST::Path path, AST::Enum& enm) void CASTIterator::handle_trait(AST::Path path, AST::Trait& trait) { start_scope(); + local_type("Self", TypeRef(TypeRef::TagArg(), "Self")); handle_params( trait.params() ); - local_type("Self", TypeRef(path)); + //local_type("Self", TypeRef(path)); + //local_type("Self", TypeRef(TypeRef::TagArg(), "Self")); for( auto& fcn : trait.functions() ) handle_function( path + fcn.name, fcn.data ); |