mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
310 B
Solidity
10 lines
310 B
Solidity
error E(uint);
|
|
contract C {
|
|
function f() public pure returns (bytes memory) {
|
|
return abi.decode(msg.data, (E));
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 1039: (119-120): Argument has to be a type name.
|
|
// TypeError 5132: (90-122): Different number of arguments in return statement than in returns declaration.
|