solidity/test/libsolidity/syntaxTests/signed_rational_modulus.sol

11 lines
323 B
Solidity
Raw Normal View History

contract test {
function f() public pure {
fixed a = 0.42578125 % -0.4271087646484375;
fixed b = .5 % a;
fixed c = a % b;
a; b; c;
}
}
2019-08-16 13:53:10 +00:00
// ----
2020-06-22 16:43:57 +00:00
// TypeError 2271: (117-123): Operator % not compatible with types rational_const 1 / 2 and fixed128x18. Fractional literals not supported.