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

9 lines
294 B
Solidity
Raw Normal View History

contract Vehicle {
2019-11-05 17:25:34 +00:00
function f(bytes calldata) external virtual returns (uint256 r) {r = 1;}
}
contract Bike is Vehicle {
2019-09-16 12:33:43 +00:00
function f(bytes calldata) override external returns (uint256 r) {r = 42;}
}
// ----
// Warning 2018: (129-203): Function state mutability can be restricted to pure