Moved test.

This commit is contained in:
chriseth
2017-01-25 17:24:43 +01:00
parent 8e318181e9
commit 27ba665694
3 changed files with 7 additions and 15 deletions
+1 -1
View File
@@ -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);