solidity/test/libsolidity/semanticTests/multiSource/import.sol

16 lines
342 B
Solidity
Raw Normal View History

==== 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; }
}
2020-07-20 13:06:45 +00:00
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f(uint256): 1337 -> 1337
// g(uint256): 1337 -> 1338