mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
289 B
Solidity
22 lines
289 B
Solidity
|
library L {
|
||
|
function x() internal returns (uint256) {
|
||
|
return 7;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
contract C {
|
||
|
function() returns (uint256) internal x;
|
||
|
|
||
|
constructor() public {
|
||
|
x = L.x;
|
||
|
}
|
||
|
|
||
|
function t() public returns (uint256) {
|
||
|
return x();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// t() -> 7
|