solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/332_rational_as_exponent_value_neg_quarter.sol

8 lines
180 B
Solidity

contract test {
function f() public {
42 ** (-1/4);
}
}
// ----
// TypeError: (50-62): Operator ** not compatible with types int_const 42 and rational_const -1 / 4