Allow fallback function to return data.

This commit is contained in:
chriseth
2020-11-23 14:22:37 +01:00
parent b62de4f16d
commit fda352094f
15 changed files with 128 additions and 21 deletions
@@ -2,4 +2,4 @@ contract C {
fallback(uint256) external {}
}
// ----
// TypeError 3978: (25-34): Fallback function cannot take parameters.
// TypeError 5570: (44-44): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".