mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
404 B
Solidity
10 lines
404 B
Solidity
|
contract root { function rootFunction() public {} }
|
||
|
contract inter1 is root { function f() public {} }
|
||
|
contract inter2 is root { function f() public {} }
|
||
|
contract derived is root, inter2, inter1 {
|
||
|
function g() public { f(); rootFunction(); }
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (16-49): Function state mutability can be restricted to pure
|
||
|
// Warning: (129-151): Function state mutability can be restricted to pure
|