mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
279 B
Solidity
8 lines
279 B
Solidity
contract Scope {
|
|
function getStateVar() view public returns (uint stateVar) {
|
|
stateVar = Scope.stateVar; // should fail.
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9582: (101-115): Member "stateVar" not found or not visible after argument-dependent lookup in type(contract Scope).
|