solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/334_fixed_point_casting_exponents_neg.sol

8 lines
216 B
Solidity
Raw Normal View History

contract test {
function f() public {
ufixed c = 42 ** fixed(-1/4);
}
}
// ----
2020-06-22 16:43:57 +00:00
// TypeError 2271: (61-78): Operator ** not compatible with types int_const 42 and fixed128x18. Exponent is fractional.