Merge pull request #7561 from ethereum/typeName-compile-fix

Type name compile fix
This commit is contained in:
Erik K 2019-10-23 14:32:04 +02:00 committed by GitHub
commit 3029c30fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1281,7 +1281,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
if (FunctionCall const* funCall = dynamic_cast<FunctionCall const*>(&_memberAccess.expression())) if (FunctionCall const* funCall = dynamic_cast<FunctionCall const*>(&_memberAccess.expression()))
if (auto const* addr = dynamic_cast<ElementaryTypeNameExpression const*>(&funCall->expression())) if (auto const* addr = dynamic_cast<ElementaryTypeNameExpression const*>(&funCall->expression()))
if ( if (
addr->typeName().token() == Token::Address && addr->type().typeName().token() == Token::Address &&
funCall->arguments().size() == 1 funCall->arguments().size() == 1
) )
if (auto arg = dynamic_cast<Identifier const*>( funCall->arguments().front().get())) if (auto arg = dynamic_cast<Identifier const*>( funCall->arguments().front().get()))