mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
553 B
Solidity
22 lines
553 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
function f() public pure {
|
||
|
if (true) {
|
||
|
} else {
|
||
|
address a = g();
|
||
|
assert(a == address(0));
|
||
|
}
|
||
|
}
|
||
|
function g() public pure returns (address) {
|
||
|
address x;
|
||
|
x = address(0);
|
||
|
return x;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (219-229): Type conversion is not yet fully supported and might yield false positives.
|
||
|
// Warning: (134-144): Type conversion is not yet fully supported and might yield false positives.
|
||
|
// Warning: (219-229): Type conversion is not yet fully supported and might yield false positives.
|