solidity/test/libsolidity/syntaxTests/structs/member_type_eq_name.sol
2020-04-14 10:59:28 +02:00

7 lines
165 B
Solidity

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.