mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
342 B
Solidity
16 lines
342 B
Solidity
==== Source: A ====
|
|
contract A {
|
|
function g(uint256 x) public view returns(uint256) { return x + 1; }
|
|
}
|
|
==== Source: B ====
|
|
import "A";
|
|
contract B is A {
|
|
function f(uint256 x) public view returns(uint256) { return x; }
|
|
}
|
|
// ====
|
|
// compileToEwasm: also
|
|
// compileViaYul: also
|
|
// ----
|
|
// f(uint256): 1337 -> 1337
|
|
// g(uint256): 1337 -> 1338
|