From e199a51dfd19eacd9c423cfff8bbc2dc2c64ac6d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 21 Mar 2015 13:52:34 +0800 Subject: Rework macro handling to (hopefully) correctly handle nested repetions --- src/parse/types.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/parse/types.cpp') diff --git a/src/parse/types.cpp b/src/parse/types.cpp index b9cf3cc1..3752dc85 100644 --- a/src/parse/types.cpp +++ b/src/parse/types.cpp @@ -164,7 +164,9 @@ TypeRef Parse_Type(TokenStream& lex) GET_CHECK_TOK(tok, lex, TOK_LIFETIME); ::std::string lifetime = tok.str(); GET_CHECK_TOK(tok, lex, TOK_PAREN_CLOSE); - throw ParseError::Todo(lex, "Type lifetime bounds"); + // TODO: Actually use lifetime bound + DEBUG("TODO: Use lifetime bound '" << lifetime << " on type " << inner); + return ::std::move(inner); } else { -- cgit v1.2.3