Merge pull request #3664 from ethereum/literalsHexUnitSmallFix

Use double quotes for suggestion about hex literals and denominations.
This commit is contained in:
chriseth 2018-03-06 19:01:25 +01:00 committed by GitHub
commit baa1526539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2070,13 +2070,13 @@ void TypeChecker::endVisit(Literal const& _literal)
m_errorReporter.fatalTypeError(
_literal.location(),
"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
m_errorReporter.warning(
_literal.location(),
"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)