aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constants/addmod_mulmod_rational.sol
blob: 267127356c51ffd5979354f826e175246817e39d (plain) (blame)
1
2
3
4
5
6
7
contract C {
    uint constant a = addmod(3, 4, 0.1);
    uint constant b = mulmod(3, 4, 0.1);
}
// ----
// TypeError: (48-51): Invalid type for argument in function call. Invalid implicit conversion from rational_const 1 / 10 to uint256 requested.
// TypeError: (89-92): Invalid type for argument in function call. Invalid implicit conversion from rational_const 1 / 10 to uint256 requested.