aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/321_rational_to_bytes_implicit_conversion.sol
blob: d209eb76af2bb464e0f5b35f015ccfe89a5ede05 (plain) (tree)
1
2
3
4
5
6
7






                                                                                                                                                                         
contract test {
    function f() public {
        bytes32 c = 3.2; c;
    }
}
// ----
// TypeError: (50-65): Type rational_const 16 / 5 is not implicitly convertible to expected type bytes32. Try converting to type ufixed8x1 or use an explicit conversion.