solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/149_test_for_bug_override_function_with_bytearray_type.sol

9 lines
270 B
Solidity
Raw Normal View History

contract Vehicle {
2018-08-07 17:12:49 +00:00
function f(bytes calldata) external returns (uint256 r) {r = 1;}
}
contract Bike is Vehicle {
2018-08-07 17:12:49 +00:00
function f(bytes calldata) external returns (uint256 r) {r = 42;}
}
// ----
2018-08-07 17:12:49 +00:00
// Warning: (23-87): Function state mutability can be restricted to pure