solidity/test/libsolidity/smtCheckerTests/special/this_state.sol
2019-04-18 17:56:52 +02:00

12 lines
186 B
Solidity

pragma experimental SMTChecker;
contract C
{
address thisAddr;
function f(address a) public {
require(a == address(this));
thisAddr = a;
assert(thisAddr == address(this));
}
}