mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
357 B
Solidity
9 lines
357 B
Solidity
|
contract C {
|
||
|
function f(uint y) public pure {
|
||
|
// one byte too long for storing in Fixedbytes (would require 33 bytes)
|
||
|
y = 0xffffffff00000000ffffffff00000000ffffffff00000000ffffffff000000001;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (142-209): Type int_const 1852...(71 digits omitted)...7281 is not implicitly convertible to expected type uint256.
|