solidity/test/libsolidity/semanticTests/constructor/store_internal_unused_library_function_in_constructor.sol

22 lines
289 B
Solidity
Raw Normal View History

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