From ea8009fe09439842219655ba207875aefc55e162 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 22 Oct 2016 20:30:38 +0800 Subject: Parse Types - Allow 'self' to start a path --- src/parse/types.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/parse') diff --git a/src/parse/types.cpp b/src/parse/types.cpp index 74565d52..4f17dec1 100644 --- a/src/parse/types.cpp +++ b/src/parse/types.cpp @@ -95,7 +95,9 @@ TypeRef Parse_Type_Int(TokenStream& lex, bool allow_trait_list) case TOK_DOUBLE_COLON: PUTBACK(tok, lex); return Parse_Type_Path(lex, {}, allow_trait_list); + // 'self' - This relative path // 'super' - Parent relative path + case TOK_RWORD_SELF: case TOK_RWORD_SUPER: PUTBACK(tok, lex); return Parse_Type_Path(lex, {}, allow_trait_list); -- cgit v1.2.3