solidity/test/libsolidity/semanticTests/inheritance/inherited_constant_state_var.sol
2022-05-19 20:23:28 +02:00

16 lines
188 B
Solidity

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