mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update error message.
This commit is contained in:
parent
525758a130
commit
873f2dddd6
@ -72,7 +72,7 @@ assembly::Statement Parser::parseStatement()
|
||||
assignment.variableName.location = location();
|
||||
assignment.variableName.name = m_scanner->currentLiteral();
|
||||
if (instructions().count(assignment.variableName.name))
|
||||
fatalParserError("Identifier expected.");
|
||||
fatalParserError("Identifier expected, got instruction name.");
|
||||
assignment.location.end = endPosition();
|
||||
expectToken(Token::Identifier);
|
||||
return assignment;
|
||||
|
@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_declaration)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_assignment)
|
||||
{
|
||||
// Error message: "Cannot use instruction names for identifier names."
|
||||
// Error message: "Identifier expected, got instruction name."
|
||||
BOOST_CHECK(!successAssemble("{ 2 =: gas }"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user