mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
168 B
Solidity
12 lines
168 B
Solidity
function iWillRevert() pure { revert(); }
|
|
|
|
contract C {
|
|
function test(bool _param) pure external returns(uint256) {
|
|
if (_param)
|
|
return 1;
|
|
|
|
iWillRevert();
|
|
}
|
|
}
|
|
|