mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4872 from bakaoh/issue4716
Crash when array index value is too large
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
contract C {
|
||||
function f() public returns (string memory) {
|
||||
// this used to cause an internal error
|
||||
return (["zeppelin"][123456789012345678901234567890123456789012345678901234567890123456789012345678]);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (140-218): Type int_const 1234...(70 digits omitted)...5678 is not implicitly convertible to expected type uint256.
|
||||
Reference in New Issue
Block a user