diff options
author | chriseth <c@ethdev.com> | 2017-01-26 20:52:02 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-26 20:52:02 +0800 |
commit | 873f2dddd635cb246af4368b9950123fb36d9b28 (patch) | |
tree | 2bf3c39a5478da864aed34cc7d120facc562681e | |
parent | 525758a130941c6f1dfde8a0f884a550e7a7bb50 (diff) | |
download | dexon-solidity-873f2dddd635cb246af4368b9950123fb36d9b28.tar.gz dexon-solidity-873f2dddd635cb246af4368b9950123fb36d9b28.tar.zst dexon-solidity-873f2dddd635cb246af4368b9950123fb36d9b28.zip |
Update error message.
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 2 | ||||
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 2 |
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 }")); } |