mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
363 B
Solidity
11 lines
363 B
Solidity
error E();
|
|
function f() pure {
|
|
require();
|
|
require(true, E(), 8);
|
|
revert(E(), 3);
|
|
}
|
|
// ----
|
|
// TypeError 7445: (35-44): Function "require" needs 1 or 2 arguments, but provided 0.
|
|
// TypeError 7445: (50-71): Function "require" needs 1 or 2 arguments, but provided 3.
|
|
// TypeError 7445: (77-91): Function "revert" needs 0 or 1 arguments, but provided 2.
|