solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/329_rational_as_exponent_value_signed.sol

8 lines
187 B
Solidity
Raw Normal View History

contract test {
function f() public {
fixed g = 2 ** -2.2;
}
}
// ----
// TypeError: (60-69): Operator ** not compatible with types int_const 2 and rational_const -11 / 5