solidity/test/libsolidity/semanticTests/libraries/internal_library_function_pointer.sol
2022-05-19 20:23:28 +02:00

16 lines
254 B
Solidity

library L {
function f() internal returns (uint) {
return 66;
}
}
contract C {
function g() public returns (uint) {
function() internal returns(uint) ptr;
ptr = L.f;
return ptr();
}
}
// ----
// g() -> 66