solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/339_rational_bitor_binary_operation.sol

8 lines
170 B
Solidity

contract test {
function f() public {
fixed(1.5) | 3;
}
}
// ----
// TypeError: (50-64): Operator | not compatible with types fixed128x18 and int_const 3