solidity/test/libsolidity/syntaxTests/missing_state_variable.sol
2022-04-01 23:41:18 -05:00

8 lines
296 B
Solidity

contract Scope {
function getStateVar() view public returns (uint stateVar) {
stateVar = Scope.stateVar; // should fail.
}
}
// ----
// TypeError 9582: (101-115='Scope.stateVar'): Member "stateVar" not found or not visible after argument-dependent lookup in type(contract Scope).