Extract subdenomination tests

This commit is contained in:
Alex Beregszaszi
2018-04-23 16:10:10 +01:00
parent fa2a28abc2
commit 6d26ad1e61
3 changed files with 11 additions and 19 deletions
@@ -0,0 +1,5 @@
contract C {
uint constant x = 0x01 wei;
}
// ----
// Warning: (32-40): Hexadecimal numbers with unit denominations are deprecated. You can use an expression of the form "0x1234 * 1 day" instead.
@@ -0,0 +1,6 @@
pragma experimental "v0.5.0";
contract C {
uint constant x = 0x01 wei;
}
// ----
// TypeError: (62-70): Hexadecimal numbers cannot be used with unit denominations. You can use an expression of the form "0x1234 * 1 day" instead.