Allow user-defined functions called like builtins.

This commit is contained in:
chriseth 2021-04-28 16:15:58 +02:00
parent 5c02837485
commit e1ae4e37a0

View File

@ -204,7 +204,7 @@ pair<string, bool> TestFileParser::parseFunctionSignature()
expect(Token::Identifier);
}
if (isBuiltinFunction(signature))
if (isBuiltinFunction(signature) && m_scanner.currentToken() != Token::LParen)
return {signature, false};
signature += formatToken(Token::LParen);