mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
384 B
Solidity
11 lines
384 B
Solidity
// 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);
|
|
}
|
|
}
|