diff --git a/Ast/src/Parser.cpp b/Ast/src/Parser.cpp index 87af53cb..b09e9383 100644 --- a/Ast/src/Parser.cpp +++ b/Ast/src/Parser.cpp @@ -1463,7 +1463,7 @@ std::pair Parser::parseReturnType() if (lexer.current().type != Lexeme::SkinnyArrow && resultNames.empty()) { // If it turns out that it's just '(A)', it's possible that there are unions/intersections to follow, so fold over it. - if (result.size() == 1) + if (result.size() == 1 && !varargAnnotation) { AstType* returnType = parseTypeSuffix(result[0], innerBegin);