Require the result of user-defined negation operator to be bool

This commit is contained in:
Kamil Śliwak
2023-01-25 00:29:10 +01:00
parent e0722732f6
commit a1438239c3
6 changed files with 9 additions and 26 deletions
@@ -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;
@@ -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;
// ----