solidity/test/libsolidity/astPropertyTests/nested_properties.sol

18 lines
438 B
Solidity

contract C {
function f() public pure {
/// TestCase1: condition.operator
for(uint i = 0; i < 42; ++i) {
}
/// TestCase2: initializationExpression.initialValue.value
for(uint i = 1; i < 42; i = i * 2) {
}
/// TestCase3: loopExpression.expression.subExpression.name
for(uint i = 0; i < 42; i++) {
}
}
}
// ----
// TestCase1: <
// TestCase2: 1
// TestCase3: i