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

8 lines
215 B
Solidity
Raw Normal View History

contract test {
function f() public {
ufixed a = 3 ** ufixed(1.5);
}
}
// ----
2020-06-22 16:43:57 +00:00
// TypeError 2271: (61-77): Operator ** not compatible with types int_const 3 and ufixed128x18. Exponent is fractional.