solidity/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_types.sol
2018-03-31 00:27:01 +01:00

18 lines
478 B
Solidity

contract C {
struct S { uint x; }
S s;
struct T { }
T t;
enum A { X, Y }
function f() public pure {
bool a = address(this).delegatecall(S, A, A.X, T, uint, uint[]);
}
}
// ----
// Warning: Defining empty structs is deprecated.
// TypeError: This type cannot be encoded.
// TypeError: This type cannot be encoded.
// TypeError: This type cannot be encoded.
// TypeError: This type cannot be encoded.
// TypeError: This type cannot be encoded.