aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/328_rational_to_fixed_literal_expression.sol
blob: 35456fa6f03388040b3151dab567281d17f70832 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
contract test {
    function f() public {
        ufixed64x8 a = 3.5 * 3;
        ufixed64x8 b = 4 - 2.5;
        ufixed64x8 c = 11 / 4;
        ufixed240x5 d = 599 + 0.21875;
        ufixed256x80 e = ufixed256x80(35.245 % 12.9);
        ufixed256x80 f = ufixed256x80(1.2 % 2);
        fixed g = 2 ** -2;
        a; b; c; d; e; f; g;
    }
}
// ----
// Warning: (238-252): This declaration shadows an existing declaration.
// Warning: (20-339): Function state mutability can be restricted to pure