mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
542 B
Solidity
18 lines
542 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: (51-63): Defining empty structs is deprecated.
|
|
// TypeError: (168-169): This type cannot be encoded.
|
|
// TypeError: (171-172): This type cannot be encoded.
|
|
// TypeError: (179-180): This type cannot be encoded.
|
|
// TypeError: (182-186): This type cannot be encoded.
|
|
// TypeError: (188-194): This type cannot be encoded.
|