mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow assign from stack in Julia (=: var)
This commit is contained in:
parent
8020144d06
commit
20206a04dd
@ -69,12 +69,14 @@ assembly::Statement Parser::parseStatement()
|
||||
return parseBlock();
|
||||
case Token::Assign:
|
||||
{
|
||||
if (m_julia)
|
||||
break;
|
||||
assembly::Assignment assignment = createWithLocation<assembly::Assignment>();
|
||||
m_scanner->next();
|
||||
expectToken(Token::Colon);
|
||||
assignment.variableName.location = location();
|
||||
assignment.variableName.name = m_scanner->currentLiteral();
|
||||
if (!m_julia && instructions().count(assignment.variableName.name))
|
||||
if (instructions().count(assignment.variableName.name))
|
||||
fatalParserError("Identifier expected, got instruction name.");
|
||||
assignment.location.end = endPosition();
|
||||
expectToken(Token::Identifier);
|
||||
|
Loading…
Reference in New Issue
Block a user