mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
31 lines
460 B
Solidity
31 lines
460 B
Solidity
contract A {
|
|
function f(uint256 a) public returns (uint256) {
|
|
return 2 * a;
|
|
}
|
|
}
|
|
|
|
|
|
contract B {
|
|
function f(bool b) public returns (uint256) {
|
|
return 10;
|
|
}
|
|
}
|
|
|
|
|
|
contract C is A, B {
|
|
function g() public returns (uint256) {
|
|
return super.f(true);
|
|
}
|
|
|
|
function h() public returns (uint256) {
|
|
return super.f(1);
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileToEwasm: also
|
|
// compileViaYul: also
|
|
// ----
|
|
// g() -> 10
|
|
// h() -> 2
|