solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/149_test_for_bug_override_function_with_bytearray_type.sol
2019-11-14 11:49:39 +01:00

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