mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Accept bool as a type in Julia mode
This commit is contained in:
parent
2ade4fcdd8
commit
ebcb27e5c1
@ -381,7 +381,15 @@ TypedName Parser::parseTypedName()
|
||||
string Parser::expectAsmIdentifier()
|
||||
{
|
||||
string name = m_scanner->currentLiteral();
|
||||
if (!m_julia && instructions().count(name))
|
||||
if (m_julia)
|
||||
{
|
||||
if (m_scanner->currentToken() == Token::Bool)
|
||||
{
|
||||
m_scanner->next();
|
||||
return name;
|
||||
}
|
||||
}
|
||||
else if (instructions().count(name))
|
||||
fatalParserError("Cannot use instruction names for identifier names.");
|
||||
expectToken(Token::Identifier);
|
||||
return name;
|
||||
|
Loading…
Reference in New Issue
Block a user