mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Moved test.
This commit is contained in:
@@ -215,7 +215,7 @@ assembly::VariableDeclaration Parser::parseVariableDeclaration()
|
||||
expectToken(Token::Let);
|
||||
varDecl.name = m_scanner->currentLiteral();
|
||||
if (s_instructions.count(varDecl.name))
|
||||
fatalParserError("Cannot shadow instructions with variable declaration.");
|
||||
fatalParserError("Cannot use instruction names for identifier names.");
|
||||
expectToken(Token::Identifier);
|
||||
expectToken(Token::Colon);
|
||||
expectToken(Token::Assign);
|
||||
|
||||
Reference in New Issue
Block a user