Update error message.

This commit is contained in:
chriseth 2017-01-26 13:52:02 +01:00
parent 525758a130
commit 873f2dddd6
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 }"));
}