solidity/test/libsolidity/semanticTests/inheritance/inherited_constant_state_var.sol

17 lines
211 B
Solidity
Raw Normal View History

contract A {
uint256 constant x = 7;
}
contract B is A {
function f() public returns (uint256) {
return A.x;
}
}
2020-04-20 21:05:14 +00:00
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 7