mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduce RightArrow (->) token in the scanner
This commit is contained in:
@@ -401,10 +401,9 @@ FunctionDefinition Parser::parseFunctionDefinition()
|
||||
expectToken(Token::Comma);
|
||||
}
|
||||
expectToken(Token::RParen);
|
||||
if (currentToken() == Token::Sub)
|
||||
if (currentToken() == Token::RightArrow)
|
||||
{
|
||||
expectToken(Token::Sub);
|
||||
expectToken(Token::GreaterThan);
|
||||
expectToken(Token::RightArrow);
|
||||
while (true)
|
||||
{
|
||||
funDef.returnVariables.emplace_back(parseTypedName());
|
||||
|
||||
Reference in New Issue
Block a user