aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/missing_state_variable.sol
blob: 8b97220c5c77087bbf2311f05e16fc4056796cfe (plain) (blame)
1
2
3
4
5
6
7
contract Scope {
    function getStateVar() view public returns (uint stateVar) {
        stateVar = Scope.stateVar; // should fail.
    }
}
// ----
// TypeError: (101-115): Member "stateVar" not found or not visible after argument-dependent lookup in type(contract Scope).