2020-11-26 16:14:58 +00:00
|
|
|
contract D {
|
|
|
|
}
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
struct S {
|
|
|
|
D d;
|
|
|
|
function () external returns (uint) f;
|
|
|
|
}
|
|
|
|
|
|
|
|
S public s;
|
|
|
|
|
|
|
|
function test() public view {
|
|
|
|
(D d, function () external returns (uint) f) = this.s();
|
|
|
|
assert(d == s.d); // should hold
|
|
|
|
assert(address(d) == address(this)); // should fail
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2020-11-26 16:14:58 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 2072: (146-183): Unused local variable.
|
2022-11-29 12:14:40 +00:00
|
|
|
// Warning 8364: (187-193): Assertion checker does not yet implement type function () view external returns (contract D,function () external returns (uint256))
|
|
|
|
// Warning 6328: (234-269): CHC: Assertion violation happens here.
|
2023-02-09 16:07:13 +00:00
|
|
|
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.
|