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

9 lines
252 B
Solidity
Raw Normal View History

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