solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/368_shift_constant_left_negative_rvalue.sol

6 lines
151 B
Solidity

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