solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/041_functions_with_stucts_of_non_external_types_in_interface.sol

9 lines
221 B
Solidity

pragma experimental ABIEncoderV2;
contract C {
struct S { function() internal a; }
function f(S memory) public {}
}
// ----
// TypeError: (103-111): Internal type is not allowed for public or external functions.