mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Restrict usage of plain "new".
This commit is contained in:
@@ -217,7 +217,7 @@ Statement Parser::parseStatement()
|
||||
|
||||
expectToken(Token::AssemblyAssign);
|
||||
|
||||
assignment.value.reset(new Expression(parseExpression()));
|
||||
assignment.value = make_unique<Expression>(parseExpression());
|
||||
assignment.location.end = locationOf(*assignment.value).end;
|
||||
|
||||
return Statement{std::move(assignment)};
|
||||
|
||||
Reference in New Issue
Block a user