solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/external_function_pointer_offset.sol
2022-04-01 23:41:18 -05:00

16 lines
318 B
Solidity

contract C {
function testFunction() external {}
function testYul() public {
function() external fp = this.testFunction;
uint myOffset;
assembly {
myOffset := fp.offset
}
}
}
// ----
// TypeError 9272: (173-182='fp.offset'): Variables of type function pointer only support ".selector" and ".address".