aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/327_rational_index_access.sol
blob: 46e5852122fadddfd1ca05548d6441e16617dba6 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                                                        
contract test {
    function f() public {
        uint[] memory a;
        a[.5];
    }
}
// ----
// TypeError: (77-79): Type rational_const 1 / 2 is not implicitly convertible to expected type uint256. Try converting to type ufixed8x1 or use an explicit conversion.