mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Require the result of user-defined negation operator to be bool
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ type Bool is bool;
|
||||
==== Source: s2.sol ====
|
||||
import "s1.sol";
|
||||
|
||||
function not(Bool) pure returns (Bool) {}
|
||||
function not(Bool) pure returns (bool) {}
|
||||
|
||||
contract C {
|
||||
using {not as !} for Bool global;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ type Bool is bool;
|
||||
==== Source: s2.sol ====
|
||||
import "s1.sol";
|
||||
|
||||
function not(Bool) pure returns (Bool) {}
|
||||
function not(Bool) pure returns (bool) {}
|
||||
|
||||
using {not as !} for Bool global;
|
||||
// ----
|
||||
|
||||
Reference in New Issue
Block a user