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:
+30
@@ -0,0 +1,30 @@
|
||||
contract A {
|
||||
function f(uint256 a) public returns (uint256) {
|
||||
return 2 * a;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
contract B {
|
||||
function f() public returns (uint256) {
|
||||
return 10;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
contract C is A, B {
|
||||
function g() public returns (uint256) {
|
||||
return f();
|
||||
}
|
||||
|
||||
function h() public returns (uint256) {
|
||||
return f(1);
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// compileToEwasm: also
|
||||
// ----
|
||||
// g() -> 10
|
||||
// h() -> 2
|
||||
Reference in New Issue
Block a user