mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
265 B
Solidity
13 lines
265 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
function f(uint8 x) public pure {
|
||
|
uint16 y = uint16(x);
|
||
|
// True because of x's type
|
||
|
assert(y < 300);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (94-103): Type conversion is not yet fully supported and might yield false positives.
|