solidity/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination.sol
2022-04-01 23:41:18 -05:00

6 lines
215 B
Solidity

contract C {
uint constant x = 0x01 wei;
}
// ----
// TypeError 5145: (32-40='0x01 wei'): Hexadecimal numbers cannot be used with unit denominations. You can use an expression of the form "0x1234 * 1 day" instead.