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

14 lines
156 B
Solidity

contract A {
uint256 constant x = 7;
}
contract B is A {
function f() public returns (uint256) {
return A.x;
}
}
// ----
// f() -> 7