mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix wrong construction of ElementaryTypeNameToken
And add an assert to prevent it in the future
This commit is contained in:
committed by
Mathias Baumann
parent
e061f1e743
commit
be615d4f2b
@@ -1678,7 +1678,7 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
|
||||
expectToken(Token::Payable);
|
||||
nodeFactory.markEndPosition();
|
||||
auto expressionType = nodeFactory.createNode<ElementaryTypeName>(
|
||||
ElementaryTypeNameToken(Token::Address, 160, 0),
|
||||
ElementaryTypeNameToken(Token::Address, 0, 0),
|
||||
std::make_optional(StateMutability::Payable)
|
||||
);
|
||||
expression = nodeFactory.createNode<ElementaryTypeNameExpression>(expressionType);
|
||||
|
||||
Reference in New Issue
Block a user