mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
262 B
Solidity
17 lines
262 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
|