solidity/test/libsolidity/semanticTests/constructor/store_internal_unused_function_in_constructor.sol
2020-03-19 14:42:25 +01:00

19 lines
282 B
Solidity

contract C {
function() returns (uint256) internal x;
constructor() public {
x = unused;
}
function unused() internal returns (uint256) {
return 7;
}
function t() public returns (uint256) {
return x();
}
}
// ----
// t() -> 7