Accept bool as a type in Julia mode

This commit is contained in:
Alex Beregszaszi 2017-05-17 13:33:05 +01:00
parent 2ade4fcdd8
commit ebcb27e5c1

View File

@ -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;