solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/333_fixed_point_casting_exponents_15.sol

8 lines
210 B
Solidity

contract test {
function f() public {
ufixed a = 3 ** ufixed(1.5);
}
}
// ----
// TypeError: (61-77): Operator ** not compatible with types int_const 3 and ufixed128x18. Exponent is fractional.