aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-26 20:52:02 +0800
committerchriseth <c@ethdev.com>2017-01-26 20:52:02 +0800
commit873f2dddd635cb246af4368b9950123fb36d9b28 (patch)
tree2bf3c39a5478da864aed34cc7d120facc562681e
parent525758a130941c6f1dfde8a0f884a550e7a7bb50 (diff)
downloaddexon-solidity-873f2dddd635cb246af4368b9950123fb36d9b28.tar.gz
dexon-solidity-873f2dddd635cb246af4368b9950123fb36d9b28.tar.zst
dexon-solidity-873f2dddd635cb246af4368b9950123fb36d9b28.zip
Update error message.
-rw-r--r--libsolidity/inlineasm/AsmParser.cpp2
-rw-r--r--test/libsolidity/InlineAssembly.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp
index 7ddc6d04..fcc92dbb 100644
--- a/libsolidity/inlineasm/AsmParser.cpp
+++ b/libsolidity/inlineasm/AsmParser.cpp
@@ -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;
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp
index 33721bbf..c051a982 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -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 }"));
}