mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Sort tests.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
contract Base {
|
||||
function f() public returns (uint256 i) {
|
||||
return g();
|
||||
}
|
||||
|
||||
function g() public virtual returns (uint256 i) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
contract Derived is Base {
|
||||
function g() public override returns (uint256 i) {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// g() -> 2
|
||||
// f() -> 2
|
||||
Reference in New Issue
Block a user