mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
325 B
Solidity
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
|