solidity/test/libsolidity/semanticTests/viaYul/function_address.sol

16 lines
483 B
Solidity
Raw Normal View History

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