mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace casting of external functions to address by a member named "address".
This commit is contained in:
committed by
chriseth
parent
d3ea86b052
commit
9f6fff2120
@@ -1552,7 +1552,13 @@ ASTPointer<Expression> Parser::parseLeftHandSideExpression(
|
||||
{
|
||||
m_scanner->next();
|
||||
nodeFactory.markEndPosition();
|
||||
expression = nodeFactory.createNode<MemberAccess>(expression, expectIdentifierToken());
|
||||
if (m_scanner->currentToken() == Token::Address)
|
||||
{
|
||||
expression = nodeFactory.createNode<MemberAccess>(expression, make_shared<ASTString>("address"));
|
||||
m_scanner->next();
|
||||
}
|
||||
else
|
||||
expression = nodeFactory.createNode<MemberAccess>(expression, expectIdentifierToken());
|
||||
break;
|
||||
}
|
||||
case Token::LParen:
|
||||
|
||||
Reference in New Issue
Block a user