solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/196_integer_boolean_or.sol

4 lines
163 B
Solidity

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