aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/149_test_for_bug_override_function_with_bytearray_type.sol
blob: bc1c426749041c4d469cfab5eb88e060b7620bf0 (plain) (blame)
1
2
3
4
5
6
7
8
contract Vehicle {
    function f(bytes calldata) external returns (uint256 r) {r = 1;}
}
contract Bike is Vehicle {
    function f(bytes calldata) external returns (uint256 r) {r = 42;}
}
// ----
// Warning: (23-87): Function state mutability can be restricted to pure