solidity/test/libsolidity/semanticTests/inheritance/inherited_constant_state_var.sol
2023-05-11 10:56:55 -05:00

13 lines
155 B
Solidity

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