aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 4ff0fb8f..cc7492dd 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -2041,12 +2041,14 @@ void TypeChecker::endVisit(Literal const& _literal)
if (v050)
m_errorReporter.fatalTypeError(
_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."
);
else
m_errorReporter.warning(
_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."
);
}
if (!_literal.annotation().type)