mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
252 B
Solidity
9 lines
252 B
Solidity
contract Vehicle {
|
|
function f(bytes) external returns (uint256 r) {r = 1;}
|
|
}
|
|
contract Bike is Vehicle {
|
|
function f(bytes) external returns (uint256 r) {r = 42;}
|
|
}
|
|
// ----
|
|
// Warning: (23-78): Function state mutability can be restricted to pure
|