solidity/test/libsolidity/semanticTests/various/state_variable_under_contract_name.sol
2020-03-19 14:42:25 +01:00

11 lines
188 B
Solidity

contract Scope {
uint256 stateVar = 42;
function getStateVar() public view returns (uint256 stateVar) {
stateVar = Scope.stateVar;
}
}
// ----
// getStateVar() -> 42