Use double quotes for suggestion about hex literals and denominations.

This commit is contained in:
Daniel Kirchner 2018-03-06 18:09:54 +01:00
parent 14b12ae745
commit b4d38c5491

View File

@ -2065,13 +2065,13 @@ void TypeChecker::endVisit(Literal const& _literal)
m_errorReporter.fatalTypeError( m_errorReporter.fatalTypeError(
_literal.location(), _literal.location(),
"Hexadecimal numbers cannot be used with unit denominations. " "Hexadecimal numbers cannot be used with unit denominations. "
"You can use an expression of the form '0x1234 * 1 day' instead." "You can use an expression of the form \"0x1234 * 1 day\" instead."
); );
else else
m_errorReporter.warning( m_errorReporter.warning(
_literal.location(), _literal.location(),
"Hexadecimal numbers with unit denominations are deprecated. " "Hexadecimal numbers with unit denominations are deprecated. "
"You can use an expression of the form '0x1234 * 1 day' instead." "You can use an expression of the form \"0x1234 * 1 day\" instead."
); );
} }
if (!_literal.annotation().type) if (!_literal.annotation().type)