From 89788c5801e03b0c5b0b288d0fefb717f75c67f0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 5 Apr 2015 13:18:46 +0800 Subject: (minor) TODO with thinkings about Self and bounds --- src/convert/resolve.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp index 65887082..35187b5f 100644 --- a/src/convert/resolve.cpp +++ b/src/convert/resolve.cpp @@ -355,6 +355,8 @@ void CPathResolver::handle_params(AST::TypeParams& params) for( auto& bound : params.bounds() ) { handle_type(bound.test()); + + // TODO: Will there be a case where within the test there's a Self that isn't the bound? local_type("Self", bound.test()); if( !bound.is_trait() ) DEBUG("namecheck lifetime bounds?"); -- cgit v1.2.3