solidity/test/libsolidity/semanticTests/viaYul/function_selector.sol
2020-03-06 21:43:14 +01:00

14 lines
354 B
Solidity

contract C {
function f() external returns (bytes4) {
return this.f.selector;
}
function h(function() external a) public returns (bytes4) {
return a.selector;
}
}
// ====
// compileViaYul: also
// ----
// f() -> left(0x26121ff0)
// h(function): left(0x1122334400112233445566778899AABBCCDDEEFF42424242) -> left(0x42424242)