aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/scoping/scoping_old.sol
blob: 70e5ee0cb91c5a63416bb8a10418329e53fa5798 (plain) (blame)
1
2
3
4
5
6
7
8
contract test {
    function f() pure public {
        x = 4;
        uint256 x = 2;
    }
}
// ----
// DeclarationError: (55-56): Undeclared identifier. "x" is not (or not yet) visible at this point.