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

6 lines
146 B
Solidity
Raw Normal View History

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