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

8 lines
190 B
Solidity
Raw Normal View History

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