solidity/test/libsolidity/syntaxTests/structs/member_type_eq_name.sol

8 lines
245 B
Solidity
Raw Normal View History

contract C {
struct S {t t;}
function f(function(S memory) external) public {}
}
// ----
// TypeError: (25-26): Name has to refer to a struct, enum or contract.
// TypeError: (53-61): Internal type cannot be used for external function type.