mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
314 B
Solidity
14 lines
314 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C
|
|
{
|
|
function f() public pure {
|
|
uint16 a = 0x1234;
|
|
uint32 b = uint32(a); // b will be 0x00001234 now
|
|
// This is correct (left padding).
|
|
assert(a == b);
|
|
}
|
|
}
|
|
// ----
|
|
// Warning: (108-117): Type conversion is not yet fully supported and might yield false positives.
|