solidity/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination_050.sol
2018-04-23 16:10:10 +01:00

7 lines
229 B
Solidity

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.