solidity/test/libsolidity/ASTJSON/documentation_on_statements.sol

17 lines
340 B
Solidity
Raw Normal View History

2021-02-09 14:12:59 +00:00
contract C {
// this is not exported
uint a;
function f() public pure returns (uint x) {
// test2
for (uint i = 0; i < 20; i++) {
// not exported either
x *= 2;
}
// nor is this because they are all
// not using the triple-slash
return x;
}
}
// ----