summaryrefslogtreecommitdiff
path: root/src/parse/root.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/root.cpp')
-rw-r--r--src/parse/root.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp
index c21cfba3..1ee1a13d 100644
--- a/src/parse/root.cpp
+++ b/src/parse/root.cpp
@@ -372,13 +372,7 @@ AST::Function Parse_FunctionDef(TokenStream& lex, ::std::string abi, AST::MetaIt
if( GET_TOK(tok, lex) == TOK_THINARROW )
{
// Return type
- if( GET_TOK(tok, lex) == TOK_EXCLAM ) {
- ret_type = TypeRef(TypeRef::TagInvalid(), Span(tok.get_pos()));
- }
- else {
- PUTBACK(tok, lex);
- ret_type = Parse_Type(lex);
- }
+ ret_type = Parse_Type(lex);
}
else
{