mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
362 B
Solidity
20 lines
362 B
Solidity
contract A {
|
|
uint256[3] arr;
|
|
bool public test = false;
|
|
|
|
function getElement(uint256 i) public returns (uint256) {
|
|
return arr[i];
|
|
}
|
|
|
|
function testIt() public returns (bool) {
|
|
uint256 i = this.getElement(5);
|
|
test = true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// test() -> false
|
|
// testIt() -> FAILURE
|
|
// test() -> false
|