solidity/test/libsolidity/syntaxTests/fallback/no_input_no_output.sol
2022-04-01 23:41:18 -05:00

10 lines
463 B
Solidity

contract C {
fallback() external returns (bytes memory _output) {}
}
contract D {
fallback(bytes calldata _input) external {}
}
// ----
// TypeError 5570: (45-67='(bytes memory _output)'): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".
// TypeError 5570: (131-131): Fallback function either has to have the signature "fallback()" or "fallback(bytes calldata) returns (bytes memory)".