solidity/test/libsolidity/syntaxTests/types/rational_number_huge.sol
2018-10-09 14:36:49 +02:00

11 lines
382 B
Solidity

contract C {
function f(uint y) public pure {
// fits FixedBytes with exactly 32-bytes
y = 0xffffffff00000000ffffffff00000000ffffffff00000000ffffffff00000000; // FixedBytes (32)
// fits exactly into FixedBytes (32), ensures underscored literals won't hurt
y = 0xffffffff00000000ffffffff00000000ffffffff00000000ffffffff_00000000;
}
}
// ----