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

8 lines
190 B
Solidity

contract C {
function f() public {}
struct S {f x;}
function g(function(S memory) external) public {}
}
// ----
// TypeError: (50-51): Name has to refer to a struct, enum or contract.