solidity/test/libsolidity/syntaxTests/viewPureChecker/access_to_base_member_constant.sol
2019-07-03 11:19:57 +02:00

11 lines
141 B
Solidity

contract A {
uint constant x = 2;
}
contract B is A {
function f() public pure returns (uint) {
return A.x;
}
}
// ----