mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow fallback function to return data.
This commit is contained in:
@@ -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)".
|
||||
|
||||
Reference in New Issue
Block a user