diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-12 14:00:32 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-12 14:00:32 +0800 |
commit | d7cff94061f2c42095e91ca5c30cffde03974cdc (patch) | |
tree | 4a560f568f7833588793d347bbd6a188230c49a5 /src/parse/root.cpp | |
parent | 1c75ff6ca74ca61049b29c5b9ce6f916752c87c7 (diff) | |
download | mrust-d7cff94061f2c42095e91ca5c30cffde03974cdc.tar.gz |
Parse - Fix incorrect handling of trailing semicolons
Diffstat (limited to 'src/parse/root.cpp')
-rw-r--r-- | src/parse/root.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp index 1e57227e..7dfb6f2c 100644 --- a/src/parse/root.cpp +++ b/src/parse/root.cpp @@ -1040,6 +1040,7 @@ void Parse_Impl_Item(TokenStream& lex, AST::Impl& impl) case TOK_RWORD_FN: {
GET_CHECK_TOK(tok, lex, TOK_IDENT);
::std::string name = tok.str();
+ DEBUG("Function " << name);
// - Self allowed, can't be prototype-form
auto fcn = Parse_FunctionDefWithCode(lex, abi, item_attrs, true);
impl.add_function(is_public, ::std::move(name), mv$(fcn));
|