solidity/test/libsolidity/syntaxTests/indexing/struct_array_noninteger_index.sol
2020-01-08 16:12:06 +01:00

11 lines
410 B
Solidity

contract test {
struct s { uint a; uint b;}
function f() pure public returns (byte) {
s[75555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555];
s[7];
}
}
// ----
// TypeError: (101-241): Type "int_const 7555...(132 digits omitted)...5555" is not implicitly convertible to expected type "uint256".