aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/array_multidim_rational.sol
blob: df9f8223b327dafff643f2bbfa5b07525147fb2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
contract C {
  function f() public {
    bytes[32] memory a;
    a[8**90][8**90][8**90*0.1];
  }
}
// ----
// TypeError: (67-72): Type int_const 1897...(74 digits omitted)...1424 is not implicitly convertible to expected type uint256.
// TypeError: (74-79): Type int_const 1897...(74 digits omitted)...1424 is not implicitly convertible to expected type uint256.
// TypeError: (81-90): Type rational_const 9485...(73 digits omitted)...5712 / 5 is not implicitly convertible to expected type uint256.
// TypeError: (65-91): Index expression cannot be represented as an unsigned integer.