solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/330_rational_as_exponent_value_unsigned.sol

8 lines
185 B
Solidity

contract test {
function f() public {
ufixed b = 3 ** 2.5;
}
}
// ----
// TypeError: (61-69): Operator ** not compatible with types int_const 3 and rational_const 5 / 2