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