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

19 lines
325 B
Solidity

contract C {
function(uint256) returns (uint256) internal x;
constructor() public {
x = double;
}
function test() public returns (bool) {
return x == double;
}
function double(uint256 _arg) public returns (uint256 _ret) {
_ret = _arg * 2;
}
}
// ----
// test() -> true