solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/197_integer_boolean_and.sol

4 lines
168 B
Solidity

contract test { fallback() external { uint x = 1; uint y = 2; x && y; } }
// ----
// TypeError 2271: (62-68): Operator && not compatible with types uint256 and uint256