solidity/test/libsolidity/syntaxTests/viewPureChecker/access_to_base_member_constant.sol

11 lines
141 B
Solidity
Raw Normal View History

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