mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
603 B
Solidity
24 lines
603 B
Solidity
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
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// ----
|
|
// Warning 2072: (146-183): Unused local variable.
|
|
// 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.
|