aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/missing_state_variable.sol
blob: 02082a4546c731a45f64d70fa53b3552c00993fe (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)