solidity/test/libsolidity/syntaxTests/missing_state_variable.sol
2020-01-08 16:12:06 +01:00

8 lines
276 B
Solidity

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)".