solidity/test/libsolidity/syntaxTests/functionTypes/function_types_internal_visibility_error.sol

8 lines
265 B
Solidity
Raw Normal View History

contract C {
// This is an error, you should explicitly use
// `external public` to fix it - `internal public` does not exist.
function(bytes memory) public a;
}
// ----
// TypeError: (139-170): Invalid visibility, can only be "external" or "internal".