2020-03-05 18:26:30 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
2021-04-23 15:59:01 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-05 18:26:30 +00:00
|
|
|
// ----
|
2022-09-16 13:53:19 +00:00
|
|
|
// f() -> 0xc06afe3a8444fc0004668591e8306bfb9968e79e
|
2020-03-05 18:26:30 +00:00
|
|
|
// g() -> true
|
|
|
|
// h(function): left(0x1122334400112233445566778899AABBCCDDEEFF42424242) -> 0x1122334400112233445566778899AABBCCDDEEFF
|