aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/scoping/scoping_for_decl_in_body.sol
blob: 3e80b3853162c9462bcfac3406f234f551cbe846 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
pragma experimental "v0.5.0";
contract test {
    function f() pure public {
        for (;; y++){
            uint y = 3;
        }
    }
}
// ----
// DeclarationError: (93-94): Undeclared identifier.