mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
483 B
Solidity
16 lines
483 B
Solidity
contract C {
|
|
function f() external returns (address) {
|
|
return this.f.address;
|
|
}
|
|
function g() external returns (bool) {
|
|
return this.f.address == address(this);
|
|
}
|
|
function h(function() external a) public returns (address) {
|
|
return a.address;
|
|
}
|
|
}
|
|
// ----
|
|
// f() -> 0xc06afe3a8444fc0004668591e8306bfb9968e79e
|
|
// g() -> true
|
|
// h(function): left(0x1122334400112233445566778899AABBCCDDEEFF42424242) -> 0x1122334400112233445566778899AABBCCDDEEFF
|