solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/041_functions_with_structs_of_non_external_types_in_interface.sol
2020-06-30 16:53:41 +05:30

9 lines
226 B
Solidity

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