mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix the 'intheritance' typo in the name of the of the subdirectories in semanticTests/
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
contract A {
|
||||
function f() internal virtual returns (uint256) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
contract B is A {
|
||||
function f() internal override returns (uint256) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
function g() public returns (uint256) {
|
||||
function() internal returns (uint256) ptr = A.f;
|
||||
return ptr();
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// compileToEwasm: also
|
||||
// ----
|
||||
// g() -> 1
|
||||
Reference in New Issue
Block a user