blob: f22afe5ed737811169d9cb33800ce26c093ec1b5 (
plain) (
tree)
|
|
// 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 calldata) pure external {}
function g() view public {
f(this.callback);
}
}
|