aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/functionTypes/external_function_to_function_type_calldata_parameter.sol
blob: eb4f0693e508ae437cc7a1be218b38d2cb914389 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// This is a test that checks that the type of the `bytes` parameter is
// correctly changed from its own type `bytes calldata` to `bytes memory`
// when converting to a function type.
contract C {
    function f(function(bytes memory) pure external /*g*/) pure public { }
    function callback(bytes) pure external {}
    function g() view public {
        f(this.callback);
    }
}