solidity/test/libsolidity/semanticTests/functionTypes/same_function_in_construction_and_runtime_equality_check.sol
2020-07-07 12:16:18 +02:00

19 lines
318 B
Solidity

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