solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/369_shift_constant_right_negative_rvalue.sol

6 lines
151 B
Solidity
Raw Normal View History

contract C {
uint public a = 0x42 >> -8;
}
// ----
// TypeError 2271: (33-43): Operator >> not compatible with types int_const 66 and int_const -8