aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/syntaxTests/types/array_index_too_large.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/types/array_index_too_large.sol b/test/libsolidity/syntaxTests/types/array_index_too_large.sol
new file mode 100644
index 00000000..06b5071f
--- /dev/null
+++ b/test/libsolidity/syntaxTests/types/array_index_too_large.sol
@@ -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. \ No newline at end of file