2020-03-09 21:14:07 +00:00
|
|
|
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
|
|
|
// ====
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// f() -> 7
|