solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/372_shift_constant_right_fractional.sol

6 lines
159 B
Solidity
Raw Normal View History

contract C {
uint public a = 0x42 >> (1 / 2);
}
// ----
// TypeError: (33-48): Operator >> not compatible with types int_const 66 and rational_const 1 / 2