mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
4d5216c2e0
Fixes #5052.
11 lines
382 B
Solidity
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;
|
|
}
|
|
}
|
|
// ----
|